pinctrl: at91-pio4: implement .get_multiple and .set_multiple
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 18 Sep 2019 11:36:57 +0000 (13:36 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 3 Oct 2019 08:10:20 +0000 (10:10 +0200)
commit09107a51b096fbac3ea32d9ea150ddf029cbc358
tree9c4d23cbe869565cbb585f4585beb00c9c41911e
parent0074a66c11a07845d67f1172cca2dd816c279722
pinctrl: at91-pio4: implement .get_multiple and .set_multiple

Implement .get_multiple and .set_multiple to allow reading or setting
multiple pins simultaneously. Pins in the same bank will all be switched at
the same time, improving synchronization and performances.

Keep the driver future proof by allowing its use on 64bits platforms if
they ever appear with this IP and we end up with a mismatch between
ATMEL_PIO_NPINS_PER_BANK and BITS_PER_LONG.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Link: https://lore.kernel.org/r/20190918113657.25998-1-alexandre.belloni@bootlin.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-at91-pio4.c