OSDN Git Service

gpio: gpio-mm: Mask read inputs for get_multiple
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Mon, 22 Oct 2018 12:09:31 +0000 (21:09 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 5 Nov 2018 07:54:41 +0000 (08:54 +0100)
commit3bfbc44029926e1bc4b89d16f562a364b2c9379e
treeffaa4604501edeee53858bd1555bc59340503507
parentb7f53f67980e72da3317fffc160c746c02c23fb5
gpio: gpio-mm: Mask read inputs for get_multiple

This patch masks the read inputs with the word mask in order to ensure
only requested input states are returned in the bits array.

Suggested-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-gpio-mm.c