]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
pinctrl: mediatek: Add get_direction support.
authorHongzhou Yang <hongzhou.yang@mediatek.com>
Tue, 17 Nov 2015 22:17:13 +0000 (14:17 -0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 18 Nov 2015 13:55:07 +0000 (14:55 +0100)
commitf97c2309667b501c03fcc1c8b3595f5ca0a1ff01
treea04629dfda33de8567da5c7210388d13be61e575
parentc3dd25cc78150d4db8c7a1842884553202d1fd43
pinctrl: mediatek: Add get_direction support.

Since Linux gpio framework return 0 for output, 1 for input.
But HW use 0 stands for input, and 1 stands for output.
So use negative to correct it.

And gpio_chip.get is used to get input value, no need to get
output value, so removing it.

Signed-off-by: Hongzhou Yang <hongzhou.yang@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mtk-common.c