]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit5fedbb923936174ab4d1d5cc92bca1cf6b2e0ca2
tree166343c1925b02eff84fc5365052750e37145512
parent6dd22a116614acf33aeef13861e32510ef9d5392
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