diff options
author | Ramon Fried <ramon.fried@gmail.com> | 2019-01-12 11:48:28 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-01-18 09:16:15 -0500 |
commit | 8d24a4776a59c96e83a95c7cc5b3f3fa294c2c70 (patch) | |
tree | 3634f3116d34dfbd3875dbfb31cafa9f082ad2ce /arch/arm/mach-snapdragon | |
parent | b12e6945e98422ed8e30a387e9ad9646ad6fccc9 (diff) | |
download | u-boot-8d24a4776a59c96e83a95c7cc5b3f3fa294c2c70.tar.gz |
mach-snapdragon: db410: pinctrl: fix pin count
Pin count in APQ8016 was wrong, fix that.
Fixes: ad97051b7ff6 ("mach-snapdragon: Introduce pinctrl driver")
Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
Diffstat (limited to 'arch/arm/mach-snapdragon')
-rw-r--r-- | arch/arm/mach-snapdragon/pinctrl-apq8016.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-snapdragon/pinctrl-apq8016.c b/arch/arm/mach-snapdragon/pinctrl-apq8016.c index bdb755d0e4..1042b564c3 100644 --- a/arch/arm/mach-snapdragon/pinctrl-apq8016.c +++ b/arch/arm/mach-snapdragon/pinctrl-apq8016.c @@ -39,11 +39,11 @@ static const char *apq8016_get_function_name(struct udevice *dev, static const char *apq8016_get_pin_name(struct udevice *dev, unsigned int selector) { - if (selector < 130) { + if (selector < 122) { snprintf(pin_name, MAX_PIN_NAME_LEN, "GPIO_%u", selector); return pin_name; } else { - return msm_pinctrl_pins[selector - 130]; + return msm_pinctrl_pins[selector - 122]; } } @@ -53,7 +53,7 @@ static unsigned int apq8016_get_function_mux(unsigned int selector) } struct msm_pinctrl_data apq8016_data = { - .pin_count = 140, + .pin_count = 133, .functions_count = ARRAY_SIZE(msm_pinctrl_functions), .get_function_name = apq8016_get_function_name, .get_function_mux = apq8016_get_function_mux, |