aboutsummaryrefslogtreecommitdiff
path: root/package/boot/uboot-d1/patches/0047-gpio-axp-Consistently-use-the-axp_gpio-order.patch
blob: 2deaadd584b3e2a7dc8483b9dc28f39ea9c280d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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;