Re: [PATCH v2 1/1] gpiolib: Introduce for_each_gpio_desc_if() macro
From: Linus Walleij <hidden>
Date: 2021-05-18 23:41:19
Also in:
lkml
From: Linus Walleij <hidden>
Date: 2021-05-18 23:41:19
Also in:
lkml
On Tue, May 18, 2021 at 10:33 AM Andy Shevchenko [off-list ref] wrote:
In a few places we are using a loop against all GPIO descriptors with a given flag for a given device. Replace it with a consolidated for_each type of macro. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This is great for readability. Reviewed-by: Linus Walleij <redacted> Yours, Linus Walleij