alistair23-linux/drivers/video
Yisheng Xie 10ac86884b fbcon: introduce for_each_registered_fb() helper
Following pattern is often used:

 for (i = 0; i < FB_MAX; i++) {
        if (registered_fb[i]) {
                ...
        }
 }

Therefore, as Andy's suggestion, for_each_registered_fb() helper can
be introduced to make the code easier to read and write by reducing
indentation level. It also saves few lines of code in each occurrence.

This patch convert all part here at the same time.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Yisheng Xie <ysxie@foxmail.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: David Lechner <david@lechnology.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
2018-07-24 19:11:26 +02:00
..
backlight treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
console console: dummycon: export dummycon_[un]register_output_notifier 2018-06-29 11:46:19 +02:00
fbdev fbcon: introduce for_each_registered_fb() helper 2018-07-24 19:11:26 +02:00
logo video/logo: remove obsolete logo files 2018-03-26 15:56:42 +02:00
display_timing.c
hdmi.c video/hdmi: Reject illegal picture aspect ratios 2018-05-11 09:04:25 +02:00
Kconfig fbdev changes for v4.17: 2018-04-10 10:20:00 -07:00
Makefile
of_display_timing.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
of_videomode.c
vgastate.c
videomode.c