59 lines
1.7 KiB
Diff
59 lines
1.7 KiB
Diff
From 7e85c2d6516e47b537b27132d1946d1eab3b8923 Mon Sep 17 00:00:00 2001
|
|
From: Samuel Holland <samuel@sholland.org>
|
|
Date: Fri, 27 Aug 2021 17:39:36 -0500
|
|
Subject: [PATCH 47/90] gpio: axp: Consistently use the "axp_gpio" order
|
|
|
|
This is less confusing than half of the driver using "axp_gpio" and the
|
|
other half using "gpio_axp".
|
|
|
|
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
|
---
|
|
drivers/gpio/axp_gpio.c | 16 ++++++++--------
|
|
1 file changed, 8 insertions(+), 8 deletions(-)
|
|
|
|
--- a/drivers/gpio/axp_gpio.c
|
|
+++ b/drivers/gpio/axp_gpio.c
|
|
@@ -89,14 +89,14 @@ static int axp_gpio_set_value(struct ude
|
|
AXP_GPIO_CTRL_OUTPUT_LOW);
|
|
}
|
|
|
|
-static const struct dm_gpio_ops gpio_axp_ops = {
|
|
+static const struct dm_gpio_ops axp_gpio_ops = {
|
|
.direction_input = axp_gpio_direction_input,
|
|
.direction_output = axp_gpio_direction_output,
|
|
.get_value = axp_gpio_get_value,
|
|
.set_value = axp_gpio_set_value,
|
|
};
|
|
|
|
-static int gpio_axp_probe(struct udevice *dev)
|
|
+static int axp_gpio_probe(struct udevice *dev)
|
|
{
|
|
struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev);
|
|
|
|
@@ -107,11 +107,11 @@ static int gpio_axp_probe(struct udevice
|
|
return 0;
|
|
}
|
|
|
|
-U_BOOT_DRIVER(gpio_axp) = {
|
|
- .name = "gpio_axp",
|
|
- .id = UCLASS_GPIO,
|
|
- .ops = &gpio_axp_ops,
|
|
- .probe = gpio_axp_probe,
|
|
+U_BOOT_DRIVER(axp_gpio) = {
|
|
+ .name = "axp_gpio",
|
|
+ .id = UCLASS_GPIO,
|
|
+ .probe = axp_gpio_probe,
|
|
+ .ops = &axp_gpio_ops,
|
|
};
|
|
|
|
int axp_gpio_init(void)
|
|
@@ -124,7 +124,7 @@ int axp_gpio_init(void)
|
|
return ret;
|
|
|
|
/* There is no devicetree support for the axp yet, so bind directly */
|
|
- ret = device_bind_driver(dm_root(), "gpio_axp", "AXP-gpio", &dev);
|
|
+ ret = device_bind_driver(dm_root(), "axp_gpio", "AXP-gpio", &dev);
|
|
if (ret)
|
|
return ret;
|
|
|