[PATCH v7 02/12] gpio: mxc: use for_each_set_bit() to iterate wakeup pads

Linus Walleij linusw at kernel.org
Wed Oct 28 15:52:53 PDT 2026


On Tue, Oct 27, 2026 at 1:13 PM Peng Fan (OSS) <peng.fan at oss.nxp.com> wrote:

> From: Peng Fan <peng.fan at nxp.com>
>
> Use for_each_set_bit() to iterate over the enabled wakeup pads instead
> of checking every bit individually.
>
> Suggested-by: Andy Shevchenko <andriy.shevchenko at intel.com>
> Reviewed-by: Frank Li <Frank.Li at nxp.com>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>

Neat!
Reviewed-by: Linus Walleij <linusw at kernel.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list