gpio: bcm281xx: Fix return value of bcm_kona_gpio_get()
authorMarkus Mayer <[email protected]>
Thu, 21 Nov 2013 23:12:46 +0000 (15:12 -0800)
committerLinus Walleij <[email protected]>
Wed, 27 Nov 2013 14:01:03 +0000 (15:01 +0100)
commite2f0b00560729c47f39b2bc624eb93d82dc0e3e8
tree20ed846bfb2fb8c21375642f62402bf04c2d33e5
parent2ba3154d9cb13697b97723cce75633b48adfe826
gpio: bcm281xx: Fix return value of bcm_kona_gpio_get()

We need to return the corresponding bit for a particular GPIO. This bit
contains shift not mask.

Signed-off-by: Markus Mayer <[email protected]>
Reviewed-by: Tim Kryger <[email protected]>
Reviewed-by: Matt Porter <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
drivers/gpio/gpio-bcm-kona.c