On Tue, Jan 03, 2017 at 07:01:17PM +0200, Andy Shevchenko 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. > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Reviewed-by: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx> -- 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