[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-id: <3211840.FYfgcvebvD@amdc3058>
Date: Tue, 24 Jul 2018 17:18:30 +0200
From: Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>
To: Yisheng Xie <ysxie@...mail.com>
Cc: keescook@...omium.org, j.w.r.degoede@...il.com,
david@...hnology.com, andriy.shevchenko@...ux.intel.com,
dri-devel@...ts.freedesktop.org, linux-fbdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 fbdev-for-next 1/2] fbcon: introduce
for_each_registered_fb() helper
On Saturday, June 30, 2018 03:29:49 PM Yisheng Xie wrote:
> 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@...ux.intel.com>
> Signed-off-by: Yisheng Xie <ysxie@...mail.com>
Patch queued for 4.19, thanks.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
Powered by blists - more mailing lists