diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2022-12-14 13:35:10 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-01-10 15:43:47 +0100 |
commit | f662623968e17a5044ba546fd1834ceb40241e48 (patch) | |
tree | 8a6713d72b8036a8791faca546cb1a5455401b27 /drivers/led | |
parent | c0afc799fb9a19a11f651596fe23b4b755593887 (diff) | |
download | barebox-f662623968e17a5044ba546fd1834ceb40241e48.tar.gz barebox-f662623968e17a5044ba546fd1834ceb40241e48.tar.xz |
Rename struct driver_d to driver
The '_d' suffix was originally meant to distinguish barebox struct
names from Linux struct names. struct driver doesn't exist in Linux,
so we can rename it and remove the meaningless suffix.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.barebox.org/20221214123512.189688-4-s.hauer@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/led')
-rw-r--r-- | drivers/led/led-gpio.c | 2 | ||||
-rw-r--r-- | drivers/led/led-pca955x.c | 2 | ||||
-rw-r--r-- | drivers/led/led-pwm.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/led/led-gpio.c b/drivers/led/led-gpio.c index 3daaf33aee..670618defb 100644 --- a/drivers/led/led-gpio.c +++ b/drivers/led/led-gpio.c @@ -258,7 +258,7 @@ static struct of_device_id led_gpio_of_ids[] = { { } }; -static struct driver_d led_gpio_of_driver = { +static struct driver led_gpio_of_driver = { .name = "gpio-leds", .probe = led_gpio_of_probe, .of_compatible = DRV_OF_COMPAT(led_gpio_of_ids), diff --git a/drivers/led/led-pca955x.c b/drivers/led/led-pca955x.c index 80354c2cdf..615437da18 100644 --- a/drivers/led/led-pca955x.c +++ b/drivers/led/led-pca955x.c @@ -393,7 +393,7 @@ static int led_pca955x_probe(struct device *dev) return err; } -static struct driver_d led_pca955x_driver = { +static struct driver led_pca955x_driver = { .name = "led-pca955x", .probe = led_pca955x_probe, .id_table = led_pca955x_id, diff --git a/drivers/led/led-pwm.c b/drivers/led/led-pwm.c index 74cc31e7fb..59cae438ca 100644 --- a/drivers/led/led-pwm.c +++ b/drivers/led/led-pwm.c @@ -81,7 +81,7 @@ static struct of_device_id led_pwm_of_ids[] = { { } }; -static struct driver_d led_pwm_of_driver = { +static struct driver led_pwm_of_driver = { .name = "pwm-leds", .probe = led_pwm_of_probe, .of_compatible = DRV_OF_COMPAT(led_pwm_of_ids), |