gpio: altera_pio: fix get_value
authorJulien Béraud <julien.beraud@orolia.com>
Mon, 7 Jan 2019 09:17:46 +0000 (09:17 +0000)
committerMarek Vasut <marex@denx.de>
Mon, 25 Feb 2019 15:07:36 +0000 (16:07 +0100)
commit97b262758b7c99a644155254bee9f716573b10ac
treed1ae93488b0694fe0574ac5571ea43176080f005
parentafd46c5f13d0c93c44008bd7040227d0b84e31b9
gpio: altera_pio: fix get_value

gpio_get_value should return 0 or 1, not the value of bit & (1 << pin)

Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Julien Beraud <julien.beraud@orolia.com>
drivers/gpio/altera_pio.c