pinctrl: qcom: qcm2290: fix off by 1 in pin_count
authorCaleb Connolly <caleb.connolly@linaro.org>
Fri, 11 Apr 2025 12:47:45 +0000 (14:47 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 2 May 2025 14:38:03 +0000 (08:38 -0600)
There are 134 pins not 133, oops! This fixes the sdcard on the RB1 as
the pins now all get configured correctly.

Fixes: 0ecb8cfcb930 ("pinctrl: qcom: add qcm2290 pinctrl driver")
Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Tested-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
drivers/pinctrl/qcom/pinctrl-qcm2290.c

index 0c2222c..84f76b6 100644 (file)
@@ -45,7 +45,7 @@ static int qcm2290_get_function_mux(__maybe_unused unsigned int pin, unsigned in
 
 struct msm_pinctrl_data qcm2290_data = {
        .pin_data = {
-               .pin_count = 133,
+               .pin_count = 134,
                .special_pins_start = 127,
        },
        .functions_count = ARRAY_SIZE(msm_pinctrl_functions),