OSDN Git Service

pinctrl: mediatek: Refine mtk_pinconf_get()
authorLight Hsieh <light.hsieh@mediatek.com>
Wed, 22 Jan 2020 06:53:12 +0000 (14:53 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 14 Feb 2020 10:32:49 +0000 (11:32 +0100)
commit1bea6afbc84206cd939ae227cf81d6c824af6fd7
treea5031096b8086688ab45d6a6892fbb8e84ac5461
parent3599cc525486be6681640ff3083376c001264c61
pinctrl: mediatek: Refine mtk_pinconf_get()

Correct cases for PIN_CONFIG_SLEW_RATE, PIN_CONFIG_INPUT_SCHMITT_ENABLE,
and PIN_CONFIG_OUTPUT_ENABLE -
Use variable ret to receive value in mtk_hw_get_value() (instead of
variable val) since pinconf_to_config_packed() at end of this function
use variable ret to pack config value.

Signed-off-by: Light Hsieh <light.hsieh@mediatek.com>
Link: https://lore.kernel.org/r/1579675994-7001-4-git-send-email-light.hsieh@mediatek.com
Acked-by: Sean Wang <sean.wang@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-paris.c