Heiko Stuebner b22a4705e2 gpio/rockchip: fix get_direction value handling
The function uses the newly introduced rockchip_gpio_readl_bit()
which directly returns the actual value of the requeste bit.
So using the existing bit-wise check for the bit inside the value
will always return 0.

Fix this by dropping the bit manipulation on the result.

Fixes: 3bcbd1a85b68 ("gpio/rockchip: support next version gpio controller")
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
2021-09-22 11:31:52 +02:00
..
2020-07-20 15:34:59 +02:00
2021-04-14 10:19:22 +01:00
2021-09-07 12:27:27 -07:00
2020-01-15 11:24:19 +01:00
2021-05-05 16:07:41 +02:00
2019-09-03 16:04:19 +02:00
2021-09-07 12:27:27 -07:00
2021-09-07 12:27:27 -07:00
2021-09-07 12:27:27 -07:00
2019-11-07 09:27:48 +01:00
2020-12-09 15:17:24 +01:00
2021-09-07 12:27:27 -07:00
2021-08-29 21:19:50 +02:00
2019-12-09 10:40:18 +01:00
2020-12-09 15:17:24 +01:00