]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
pinctrl: scmi: Delete PIN_CONFIG_OUTPUT_IMPEDANCE_OHMS support
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 23 Mar 2026 19:01:32 +0000 (22:01 +0300)
committerLinus Walleij <linusw@kernel.org>
Tue, 24 Mar 2026 12:50:30 +0000 (13:50 +0100)
The argument for PIN_CONFIG_OUTPUT_IMPEDANCE_OHMS is supposed to
be expressed in terms of ohms.  But the pinctrl-scmi driver was
implementing it the same as PIN_CONFIG_OUTPUT and writing either a
zero or one to the pin.

The SCMI protocol doesn't have an support configuration type so just
delete this code instead of replacing it.

Cc: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/pinctrl/pinctrl-scmi.c

index 5d347e6b2e4c10805efbb7ed0dfe99a05fa40f2e..de8c113bc61d148fd21288df9af5bc89631e3015 100644 (file)
@@ -254,9 +254,6 @@ static int pinctrl_scmi_map_pinconf_type(enum pin_config_param param,
        case PIN_CONFIG_OUTPUT_ENABLE:
                *type = SCMI_PIN_OUTPUT_MODE;
                break;
-       case PIN_CONFIG_OUTPUT_IMPEDANCE_OHMS:
-               *type = SCMI_PIN_OUTPUT_VALUE;
-               break;
        case PIN_CONFIG_POWER_SOURCE:
                *type = SCMI_PIN_POWER_SOURCE;
                break;