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>
This commit is contained in:
Samuel Holland 2021-08-27 17:39:36 -05:00
parent 23f4f47cd8
commit eedbe58ecd

View File

@ -89,14 +89,14 @@ static int axp_gpio_set_value(struct udevice *dev, unsigned pin, int val)
AXP_GPIO_CTRL_OUTPUT_LOW); 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_input = axp_gpio_direction_input,
.direction_output = axp_gpio_direction_output, .direction_output = axp_gpio_direction_output,
.get_value = axp_gpio_get_value, .get_value = axp_gpio_get_value,
.set_value = axp_gpio_set_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); struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev);
@ -107,11 +107,11 @@ static int gpio_axp_probe(struct udevice *dev)
return 0; return 0;
} }
U_BOOT_DRIVER(gpio_axp) = { U_BOOT_DRIVER(axp_gpio) = {
.name = "gpio_axp", .name = "axp_gpio",
.id = UCLASS_GPIO, .id = UCLASS_GPIO,
.ops = &gpio_axp_ops, .probe = axp_gpio_probe,
.probe = gpio_axp_probe, .ops = &axp_gpio_ops,
}; };
int axp_gpio_init(void) int axp_gpio_init(void)
@ -124,7 +124,7 @@ int axp_gpio_init(void)
return ret; return ret;
/* There is no devicetree support for the axp yet, so bind directly */ /* 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) if (ret)
return ret; return ret;