On Mon, Jan 9, 2017 at 3:02 PM, Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote: > The macro for_each_set_bit() effectively looks up to the next set bit in array > of bits. > > Instead of open coding that switch to for_each_set_bit() in > gpio_chip_set_multiple(). > > While here, make gpio_chip_set_multiple() non-destructive against its > parameters. We are safe since all callers, i.e. > gpiod_set_array_value_complex(), handle that already. > > Reviewed-by: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> I hope v1 is just as fine. It looks the same. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html