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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 May 2016 21:48:45 +0000 (14:48 -0700)
commitc7ce82609fda7214292998e3a38901d3944b6c16
tree85e68a88d4a99ea8e21cfe387adbee166a9f12f4
parent4e8d89e8bb8828faf3c955fe9a50e1ae54918326
pinctrl: mediatek: correct debounce time unit in mtk_gpio_set_debounce

commit 5fedbb923936174ab4d1d5cc92bca1cf6b2e0ca2 upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pinctrl/mediatek/pinctrl-mtk-common.c