commit | f97c2309667b501c03fcc1c8b3595f5ca0a1ff01 | [log] [tgz] |
---|---|---|
author | Hongzhou Yang <hongzhou.yang@mediatek.com> | Tue Nov 17 14:17:13 2015 -0800 |
committer | Linus Walleij <linus.walleij@linaro.org> | Wed Nov 18 14:55:07 2015 +0100 |
tree | a04629dfda33de8567da5c7210388d13be61e575 | |
parent | c3dd25cc78150d4db8c7a1842884553202d1fd43 [diff] |
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>