]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: mediatek: correct debounce time unit in mtk_gpio_set_debounce
authorYingjoe Chen <yingjoe.chen@mediatek.com>
Sat, 2 Apr 2016 06:57:49 +0000 (14:57 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 15 Apr 2016 08:28:04 +0000 (10:28 +0200)
commit3859d75180f2275336e83da742400f8055901e90
tree166343c1925b02eff84fc5365052750e37145512
parent015c019b42bf8c511343cdcd75f5a81e2e0cb527
pinctrl: mediatek: correct debounce time unit in mtk_gpio_set_debounce

The debounce time unit for gpio_chip.set_debounce is us but
mtk_gpio_set_debounce regard it as ms.
Fix this by correct debounce time array dbnc_arr so it can find correct
debounce setting. Debounce time for first debounce setting is 500us,
correct this as well.

While I'm at it, also change the debounce time array name to
"debounce_time" for readability.

Cc: stable@vger.kernel.org
Signed-off-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Acked-by: Hongzhou Yang <hongzhou.yang@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mtk-common.c