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/mfd | |
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/mfd')
-rw-r--r-- | drivers/mfd/act8846.c | 2 | ||||
-rw-r--r-- | drivers/mfd/atmel-flexcom.c | 2 | ||||
-rw-r--r-- | drivers/mfd/axp20x-i2c.c | 2 | ||||
-rw-r--r-- | drivers/mfd/da9053.c | 2 | ||||
-rw-r--r-- | drivers/mfd/da9063.c | 2 | ||||
-rw-r--r-- | drivers/mfd/lp3972.c | 2 | ||||
-rw-r--r-- | drivers/mfd/mc13xxx.c | 4 | ||||
-rw-r--r-- | drivers/mfd/mc34704.c | 2 | ||||
-rw-r--r-- | drivers/mfd/mc9sdz60.c | 2 | ||||
-rw-r--r-- | drivers/mfd/rave-sp.c | 2 | ||||
-rw-r--r-- | drivers/mfd/rk808.c | 2 | ||||
-rw-r--r-- | drivers/mfd/rn5t568.c | 2 | ||||
-rw-r--r-- | drivers/mfd/stm32-timers.c | 2 | ||||
-rw-r--r-- | drivers/mfd/stmpe-i2c.c | 2 | ||||
-rw-r--r-- | drivers/mfd/stpmic1.c | 2 | ||||
-rw-r--r-- | drivers/mfd/syscon.c | 2 | ||||
-rw-r--r-- | drivers/mfd/twl4030.c | 2 | ||||
-rw-r--r-- | drivers/mfd/twl6030.c | 2 |
18 files changed, 19 insertions, 19 deletions
diff --git a/drivers/mfd/act8846.c b/drivers/mfd/act8846.c index a9eee8c155..f15310f507 100644 --- a/drivers/mfd/act8846.c +++ b/drivers/mfd/act8846.c @@ -127,7 +127,7 @@ static int act8846_probe(struct device *dev) return 0; } -static struct driver_d act8846_driver = { +static struct driver act8846_driver = { .name = DRIVERNAME, .probe = act8846_probe, }; diff --git a/drivers/mfd/atmel-flexcom.c b/drivers/mfd/atmel-flexcom.c index 0f111f9c22..8649431ca1 100644 --- a/drivers/mfd/atmel-flexcom.c +++ b/drivers/mfd/atmel-flexcom.c @@ -65,7 +65,7 @@ static const struct of_device_id atmel_flexcom_of_match[] = { { /* sentinel */ } }; -static struct driver_d atmel_flexcom_driver = { +static struct driver atmel_flexcom_driver = { .probe = atmel_flexcom_probe, .name = "atmel_flexcom", .of_compatible = atmel_flexcom_of_match, diff --git a/drivers/mfd/axp20x-i2c.c b/drivers/mfd/axp20x-i2c.c index 14899caba9..1087b99bab 100644 --- a/drivers/mfd/axp20x-i2c.c +++ b/drivers/mfd/axp20x-i2c.c @@ -59,7 +59,7 @@ static const struct of_device_id axp20x_i2c_of_match[] = { { }, }; -static struct driver_d axp20x_i2c_driver = { +static struct driver axp20x_i2c_driver = { .name = "axp20x-i2c", .probe = axp20x_i2c_probe, .of_compatible = DRV_OF_COMPAT(axp20x_i2c_of_match), diff --git a/drivers/mfd/da9053.c b/drivers/mfd/da9053.c index f7c3bd89dd..435b183346 100644 --- a/drivers/mfd/da9053.c +++ b/drivers/mfd/da9053.c @@ -289,7 +289,7 @@ static __maybe_unused struct of_device_id da9053_dt_ids[] = { } }; -static struct driver_d da9053_driver = { +static struct driver da9053_driver = { .name = DRIVERNAME, .probe = da9053_probe, .of_compatible = DRV_OF_COMPAT(da9053_dt_ids), diff --git a/drivers/mfd/da9063.c b/drivers/mfd/da9063.c index 5df29ef1d8..30fc559f80 100644 --- a/drivers/mfd/da9063.c +++ b/drivers/mfd/da9063.c @@ -427,7 +427,7 @@ static struct of_device_id const da906x_dt_ids[] = { } }; -static struct driver_d da9063_driver = { +static struct driver da9063_driver = { .name = "da9063", .probe = da9063_probe, .id_table = da9063_id, diff --git a/drivers/mfd/lp3972.c b/drivers/mfd/lp3972.c index 6758f166a7..d72f697da5 100644 --- a/drivers/mfd/lp3972.c +++ b/drivers/mfd/lp3972.c @@ -80,7 +80,7 @@ static int lp_probe(struct device *dev) return 0; } -static struct driver_d lp_driver = { +static struct driver lp_driver = { .name = DRIVERNAME, .probe = lp_probe, }; diff --git a/drivers/mfd/mc13xxx.c b/drivers/mfd/mc13xxx.c index 727ed65bb0..6fc4ea73ea 100644 --- a/drivers/mfd/mc13xxx.c +++ b/drivers/mfd/mc13xxx.c @@ -388,7 +388,7 @@ static __maybe_unused struct of_device_id mc13xxx_dt_ids[] = { { } }; -static __maybe_unused struct driver_d mc13xxx_i2c_driver = { +static __maybe_unused struct driver mc13xxx_i2c_driver = { .name = "mc13xxx-i2c", .probe = mc13xxx_probe, .id_table = mc13xxx_ids, @@ -399,7 +399,7 @@ static __maybe_unused struct driver_d mc13xxx_i2c_driver = { coredevice_i2c_driver(mc13xxx_i2c_driver); #endif -static __maybe_unused struct driver_d mc13xxx_spi_driver = { +static __maybe_unused struct driver mc13xxx_spi_driver = { .name = "mc13xxx-spi", .probe = mc13xxx_probe, .id_table = mc13xxx_ids, diff --git a/drivers/mfd/mc34704.c b/drivers/mfd/mc34704.c index 28765453ea..a03a967e4e 100644 --- a/drivers/mfd/mc34704.c +++ b/drivers/mfd/mc34704.c @@ -115,7 +115,7 @@ static __maybe_unused struct of_device_id mc34704_dt_ids[] = { { } }; -static struct driver_d mc34704_driver = { +static struct driver mc34704_driver = { .name = DRIVERNAME, .probe = mc34704_probe, .of_compatible = DRV_OF_COMPAT(mc34704_dt_ids), diff --git a/drivers/mfd/mc9sdz60.c b/drivers/mfd/mc9sdz60.c index 0f8ded11d8..1f8a5611b4 100644 --- a/drivers/mfd/mc9sdz60.c +++ b/drivers/mfd/mc9sdz60.c @@ -122,7 +122,7 @@ static int mc_probe(struct device *dev) return 0; } -static struct driver_d mc_driver = { +static struct driver mc_driver = { .name = DRIVERNAME, .probe = mc_probe, }; diff --git a/drivers/mfd/rave-sp.c b/drivers/mfd/rave-sp.c index 26a0fa3fbd..b12653a5f9 100644 --- a/drivers/mfd/rave-sp.c +++ b/drivers/mfd/rave-sp.c @@ -853,7 +853,7 @@ static int rave_sp_probe(struct device *dev) return of_platform_populate(dev->of_node, NULL, dev); } -static struct driver_d rave_sp_drv = { +static struct driver rave_sp_drv = { .name = "rave-sp", .probe = rave_sp_probe, .of_compatible = DRV_OF_COMPAT(rave_sp_dt_ids), diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index d7f1e659e2..d16721b87f 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -381,7 +381,7 @@ static const struct of_device_id rk808_of_match[] = { { }, }; -static struct driver_d rk808_i2c_driver = { +static struct driver rk808_i2c_driver = { .name = "rk808", .of_compatible = rk808_of_match, .probe = rk808_probe, diff --git a/drivers/mfd/rn5t568.c b/drivers/mfd/rn5t568.c index a5b116c6b8..2fdcdec99e 100644 --- a/drivers/mfd/rn5t568.c +++ b/drivers/mfd/rn5t568.c @@ -157,7 +157,7 @@ static __maybe_unused const struct of_device_id rn5t568_of_match[] = { { } }; -static struct driver_d rn5t568_i2c_driver = { +static struct driver rn5t568_i2c_driver = { .name = "rn5t568-i2c", .probe = rn5t568_i2c_probe, .of_compatible = DRV_OF_COMPAT(rn5t568_of_match), diff --git a/drivers/mfd/stm32-timers.c b/drivers/mfd/stm32-timers.c index e3bf8469e7..d079afa667 100644 --- a/drivers/mfd/stm32-timers.c +++ b/drivers/mfd/stm32-timers.c @@ -66,7 +66,7 @@ static const struct of_device_id stm32_timers_of_match[] = { { /* sentinel */ }, }; -static struct driver_d stm32_timers_driver = { +static struct driver stm32_timers_driver = { .name = "stm32-timers", .probe = stm32_timers_probe, .of_compatible = stm32_timers_of_match, diff --git a/drivers/mfd/stmpe-i2c.c b/drivers/mfd/stmpe-i2c.c index 916c22e48a..08dc48246e 100644 --- a/drivers/mfd/stmpe-i2c.c +++ b/drivers/mfd/stmpe-i2c.c @@ -156,7 +156,7 @@ static struct platform_device_id stmpe_i2c_id[] = { { } }; -static struct driver_d stmpe_driver = { +static struct driver stmpe_driver = { .name = DRIVERNAME, .probe = stmpe_probe, .id_table = stmpe_i2c_id, diff --git a/drivers/mfd/stpmic1.c b/drivers/mfd/stpmic1.c index 69cfd07682..f878ff7015 100644 --- a/drivers/mfd/stpmic1.c +++ b/drivers/mfd/stpmic1.c @@ -47,7 +47,7 @@ static __maybe_unused struct of_device_id stpmic1_dt_ids[] = { { /* sentinel */ } }; -static struct driver_d stpmic1_i2c_driver = { +static struct driver stpmic1_i2c_driver = { .name = "stpmic1-i2c", .probe = stpmic1_probe, .of_compatible = DRV_OF_COMPAT(stpmic1_dt_ids), diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c index 585d2ecc9c..5d1fed4aee 100644 --- a/drivers/mfd/syscon.c +++ b/drivers/mfd/syscon.c @@ -257,7 +257,7 @@ static struct platform_device_id syscon_ids[] = { { } }; -static struct driver_d syscon_driver = { +static struct driver syscon_driver = { .name = "syscon", .probe = syscon_probe, .id_table = syscon_ids, diff --git a/drivers/mfd/twl4030.c b/drivers/mfd/twl4030.c index 4db15b802d..7acf9b18bd 100644 --- a/drivers/mfd/twl4030.c +++ b/drivers/mfd/twl4030.c @@ -43,7 +43,7 @@ static int twl_probe(struct device *dev) return 0; } -static struct driver_d twl_driver = { +static struct driver twl_driver = { .name = DRIVERNAME, .probe = twl_probe, }; diff --git a/drivers/mfd/twl6030.c b/drivers/mfd/twl6030.c index 11eef883cf..d7a7d9baf8 100644 --- a/drivers/mfd/twl6030.c +++ b/drivers/mfd/twl6030.c @@ -61,7 +61,7 @@ static int twl_probe(struct device *dev) return 0; } -static struct driver_d twl_driver = { +static struct driver twl_driver = { .name = DRIVERNAME, .probe = twl_probe, }; |