]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pinctrl: qcom: ipq4019: adapt pin name lookup to upstream DTS
authorRobert Marko <robert.marko@sartura.hr>
Mon, 22 Apr 2024 11:43:26 +0000 (13:43 +0200)
committerCaleb Connolly <caleb.connolly@linaro.org>
Tue, 23 Apr 2024 11:29:20 +0000 (13:29 +0200)
We want to use OF_UPSTREAM on IPQ40XX as its well supported upstream, so
as a preparation update pinctrl driver to look for the upstream pin format.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
drivers/pinctrl/qcom/pinctrl-ipq4019.c

index 447923031334f4243fe64af2094bfa9770eb90d5..4fcc4b18101e9b78c49fd0f3c8b8937f43fa6820 100644 (file)
@@ -36,7 +36,7 @@ static const char *ipq4019_get_function_name(struct udevice *dev,
 static const char *ipq4019_get_pin_name(struct udevice *dev,
                                        unsigned int selector)
 {
-       snprintf(pin_name, MAX_PIN_NAME_LEN, "GPIO_%u", selector);
+       snprintf(pin_name, MAX_PIN_NAME_LEN, "gpio%u", selector);
        return pin_name;
 }