gpiolib: fix gpiochip_machine_hog()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 1 May 2018 07:36:39 +0000 (10:36 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 16 May 2018 12:35:24 +0000 (14:35 +0200)
commitba3efdff2cd214e4133b73f4891f6255b610c19b
treee078b1991d239189389a3d9c64ba3fd367a0bc6b
parent0c695e38d94f007f0820d9c46df6f6d1fc855a8a
gpiolib: fix gpiochip_machine_hog()

There is a shifter vs vanilla mask bug here.  We want to test if 1 << 11
is set but we're testing if 0xb is set.

Fixes: 9a6c505f7df1 ("gpiolib: add hogs support for machine code")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c