gpiolib: Show correct direction from the beginning
mainline inclusion from mainline-v4.20-rc1 commit 3edfb7bd76bd1cba6b917736943dffd799deed8a category: bugfix bugzilla: 14225 CVE: NA ------------------------------------------------- Current code assumes that the direction is input if direction_input function is set. This might not be the case on GPIOs with programmable direction. Signed-off-by: NRicardo Ribalda Delgado <ricardo.ribalda@gmail.com> Tested-by: NJeffrey Hugo <jhugo@codeaurora.org> Signed-off-by: NLinus Walleij <linus.walleij@linaro.org> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com> Reviewed-by: NHanjun Guo <guohanjun@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录