extcon: arizona: Fix flags parameter to the gpiod_get("wlf,micd-pol") call
authorHans de Goede <hdegoede@redhat.com>
Sun, 7 Mar 2021 15:17:58 +0000 (16:17 +0100)
committerLee Jones <lee.jones@linaro.org>
Thu, 18 Mar 2021 11:46:15 +0000 (11:46 +0000)
commitece2619fe8edc703b872136057090627e8a19ab4
tree1e86315069030ebb4ddc09db961cb5cdd5ad70c0
parente5b499f6fb17bc95a813e85d0796522280203806
extcon: arizona: Fix flags parameter to the gpiod_get("wlf,micd-pol") call

The initial value of the GPIO should match the info->micd_modes[0].gpio
value. arizona_extcon_probe() already stores the necessary flag in a
mode variable, but instead of passing mode as flags to the gpiod_get()
it was using a hardcoded GPIOD_OUT_LOW.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/extcon/extcon-arizona.c