]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
pinctrl: qcom: Fix typo
authorThomas Weber <thomas.x.weber@gmail.com>
Tue, 5 May 2026 12:24:12 +0000 (14:24 +0200)
committerLinus Walleij <linusw@kernel.org>
Mon, 11 May 2026 20:06:56 +0000 (22:06 +0200)
STRENGH -> STRENGTH

Signed-off-by: Thomas Weber <thomas.weber@corscience.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c

index 5c966d51eda7bb661501ee530b4eb4ac966fc80a..c42dd7c736fec231aa1688e91cab70d738ad6cc3 100644 (file)
@@ -53,7 +53,7 @@
 #define PM8XXX_GPIO_PHYSICAL_OFFSET    1
 
 /* custom pinconf parameters */
-#define PM8XXX_QCOM_DRIVE_STRENG     (PIN_CONFIG_END + 1)
+#define PM8XXX_QCOM_DRIVE_STRENGTH     (PIN_CONFIG_END + 1)
 #define PM8XXX_QCOM_PULL_UP_STRENGTH   (PIN_CONFIG_END + 2)
 
 /**
@@ -97,13 +97,13 @@ struct pm8xxx_gpio {
 };
 
 static const struct pinconf_generic_params pm8xxx_gpio_bindings[] = {
-       {"qcom,drive-strength",         PM8XXX_QCOM_DRIVE_STRENGH,      0},
+       {"qcom,drive-strength",         PM8XXX_QCOM_DRIVE_STRENGTH,     0},
        {"qcom,pull-up-strength",       PM8XXX_QCOM_PULL_UP_STRENGTH,   0},
 };
 
 #ifdef CONFIG_DEBUG_FS
 static const struct pin_config_item pm8xxx_conf_items[ARRAY_SIZE(pm8xxx_gpio_bindings)] = {
-       PCONFDUMP(PM8XXX_QCOM_DRIVE_STRENGH, "drive-strength", NULL, true),
+       PCONFDUMP(PM8XXX_QCOM_DRIVE_STRENGTH, "drive-strength", NULL, true),
        PCONFDUMP(PM8XXX_QCOM_PULL_UP_STRENGTH,  "pull up strength", NULL, true),
 };
 #endif
@@ -291,7 +291,7 @@ static int pm8xxx_pin_config_get(struct pinctrl_dev *pctldev,
        case PIN_CONFIG_POWER_SOURCE:
                arg = pin->power_source;
                break;
-       case PM8XXX_QCOM_DRIVE_STRENGH:
+       case PM8XXX_QCOM_DRIVE_STRENGTH:
                arg = pin->output_strength;
                break;
        case PIN_CONFIG_DRIVE_PUSH_PULL:
@@ -373,7 +373,7 @@ static int pm8xxx_pin_config_set(struct pinctrl_dev *pctldev,
                        pin->power_source = arg;
                        banks |= BIT(0);
                        break;
-               case PM8XXX_QCOM_DRIVE_STRENGH:
+               case PM8XXX_QCOM_DRIVE_STRENGTH:
                        if (arg > PMIC_GPIO_STRENGTH_LOW) {
                                dev_err(pctrl->dev, "invalid drive strength\n");
                                return -EINVAL;