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/i2c | |
parent | c0afc799fb9a19a11f651596fe23b4b755593887 (diff) | |
download | barebox-f662623968e17a5044ba546fd1834ceb40241e48.tar.gz |
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/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-at91.c | 2 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-bcm283x.c | 2 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-cadence.c | 2 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-designware.c | 2 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-gpio.c | 2 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-imx.c | 2 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-mv64xxx.c | 2 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-omap.c | 2 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-rockchip.c | 2 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-stm32.c | 2 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-tegra.c | 2 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-versatile.c | 2 | ||||
-rw-r--r-- | drivers/i2c/muxes/i2c-mux-pca954x.c | 2 |
13 files changed, 13 insertions, 13 deletions
diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c-at91.c index a1a37980d5..2fe21a7ec9 100644 --- a/drivers/i2c/busses/i2c-at91.c +++ b/drivers/i2c/busses/i2c-at91.c @@ -565,7 +565,7 @@ out_free: return rc; } -static struct driver_d at91_twi_driver = { +static struct driver at91_twi_driver = { .name = "at91-twi", .probe = at91_twi_probe, .id_table = at91_twi_devtypes, diff --git a/drivers/i2c/busses/i2c-bcm283x.c b/drivers/i2c/busses/i2c-bcm283x.c index 1dc542f984..b451fb7876 100644 --- a/drivers/i2c/busses/i2c-bcm283x.c +++ b/drivers/i2c/busses/i2c-bcm283x.c @@ -326,7 +326,7 @@ static struct of_device_id bcm283x_i2c_dt_ids[] = { { /* sentinel */ } }; -static struct driver_d bcm283x_i2c_driver = { +static struct driver bcm283x_i2c_driver = { .name = "i2c-bcm283x", .probe = bcm283x_i2c_probe, .of_compatible = DRV_OF_COMPAT(bcm283x_i2c_dt_ids), diff --git a/drivers/i2c/busses/i2c-cadence.c b/drivers/i2c/busses/i2c-cadence.c index 7c8beb61e4..9f329247bf 100644 --- a/drivers/i2c/busses/i2c-cadence.c +++ b/drivers/i2c/busses/i2c-cadence.c @@ -445,7 +445,7 @@ static const struct of_device_id cdns_i2c_match[] = { {}, }; -static struct driver_d cdns_i2c_driver = { +static struct driver cdns_i2c_driver = { .name = "cdns-i2c", .of_compatible = cdns_i2c_match, .probe = cdns_i2c_probe, diff --git a/drivers/i2c/busses/i2c-designware.c b/drivers/i2c/busses/i2c-designware.c index e8ece4a2e2..9d94f00cb1 100644 --- a/drivers/i2c/busses/i2c-designware.c +++ b/drivers/i2c/busses/i2c-designware.c @@ -600,7 +600,7 @@ static __maybe_unused struct of_device_id i2c_dw_dt_ids[] = { { /* sentinel */ } }; -static struct driver_d i2c_dw_driver = { +static struct driver i2c_dw_driver = { .probe = i2c_dw_probe, .name = "i2c-designware", .of_compatible = DRV_OF_COMPAT(i2c_dw_dt_ids), diff --git a/drivers/i2c/busses/i2c-gpio.c b/drivers/i2c/busses/i2c-gpio.c index 6da80e9f0c..3edf38578b 100644 --- a/drivers/i2c/busses/i2c-gpio.c +++ b/drivers/i2c/busses/i2c-gpio.c @@ -229,7 +229,7 @@ static struct of_device_id i2c_gpio_dt_ids[] = { { /* sentinel */ } }; -static struct driver_d i2c_gpio_driver = { +static struct driver i2c_gpio_driver = { .name = "i2c-gpio", .probe = i2c_gpio_probe, .of_compatible = DRV_OF_COMPAT(i2c_gpio_dt_ids), diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c index c98c1f0005..28bd0072ad 100644 --- a/drivers/i2c/busses/i2c-imx.c +++ b/drivers/i2c/busses/i2c-imx.c @@ -649,7 +649,7 @@ static __maybe_unused struct of_device_id imx_i2c_dt_ids[] = { { /* sentinel */ } }; -static struct driver_d i2c_fsl_driver = { +static struct driver i2c_fsl_driver = { .probe = i2c_fsl_probe, .name = "i2c-fsl", .of_compatible = DRV_OF_COMPAT(imx_i2c_dt_ids), diff --git a/drivers/i2c/busses/i2c-mv64xxx.c b/drivers/i2c/busses/i2c-mv64xxx.c index 33e46f540e..abc2a7f2a2 100644 --- a/drivers/i2c/busses/i2c-mv64xxx.c +++ b/drivers/i2c/busses/i2c-mv64xxx.c @@ -643,7 +643,7 @@ exit_clk: return rc; } -static struct driver_d mv64xxx_i2c_driver = { +static struct driver mv64xxx_i2c_driver = { .probe = mv64xxx_i2c_probe, .name = "mv64xxx_i2c", .of_compatible = DRV_OF_COMPAT(mv64xxx_i2c_of_match_table), diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 79821be6f7..d9436b17c0 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -1220,7 +1220,7 @@ static __maybe_unused struct of_device_id omap_i2c_dt_ids[] = { } }; -static struct driver_d omap_i2c_driver = { +static struct driver omap_i2c_driver = { .probe = i2c_omap_probe, .name = DRIVER_NAME, .id_table = omap_i2c_ids, diff --git a/drivers/i2c/busses/i2c-rockchip.c b/drivers/i2c/busses/i2c-rockchip.c index 0d3fd2c6bb..f8c876614b 100644 --- a/drivers/i2c/busses/i2c-rockchip.c +++ b/drivers/i2c/busses/i2c-rockchip.c @@ -453,7 +453,7 @@ static const struct of_device_id rk_i2c_match[] = { {}, }; -static struct driver_d rk_i2c_driver = { +static struct driver rk_i2c_driver = { .name = "rk3x-i2c", .of_compatible = rk_i2c_match, .probe = rk_i2c_probe, diff --git a/drivers/i2c/busses/i2c-stm32.c b/drivers/i2c/busses/i2c-stm32.c index 9a0e374be2..5b1eba791a 100644 --- a/drivers/i2c/busses/i2c-stm32.c +++ b/drivers/i2c/busses/i2c-stm32.c @@ -851,7 +851,7 @@ static __maybe_unused struct of_device_id stm32_i2c_dt_ids[] = { { /* sentinel */ } }; -static struct driver_d stm32_i2c_driver = { +static struct driver stm32_i2c_driver = { .probe = stm32_i2c_probe, .name = "stm32f7-i2c", .of_compatible = DRV_OF_COMPAT(stm32_i2c_dt_ids), diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index 117bc8154c..0f93b9ae82 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -684,7 +684,7 @@ static __maybe_unused struct of_device_id tegra_i2c_compatible[] = { } }; -static struct driver_d tegra_i2c_driver = { +static struct driver tegra_i2c_driver = { .name = "tegra-i2c", .probe = tegra_i2c_probe, .of_compatible = DRV_OF_COMPAT(tegra_i2c_compatible), diff --git a/drivers/i2c/busses/i2c-versatile.c b/drivers/i2c/busses/i2c-versatile.c index 2348631870..b287a79987 100644 --- a/drivers/i2c/busses/i2c-versatile.c +++ b/drivers/i2c/busses/i2c-versatile.c @@ -107,7 +107,7 @@ static struct of_device_id i2c_versatile_match[] = { {}, }; -static struct driver_d i2c_versatile_driver = { +static struct driver i2c_versatile_driver = { .name = "versatile-i2c", .probe = i2c_versatile_probe, .of_compatible = DRV_OF_COMPAT(i2c_versatile_match), diff --git a/drivers/i2c/muxes/i2c-mux-pca954x.c b/drivers/i2c/muxes/i2c-mux-pca954x.c index 9efee55d15..6c21b92860 100644 --- a/drivers/i2c/muxes/i2c-mux-pca954x.c +++ b/drivers/i2c/muxes/i2c-mux-pca954x.c @@ -255,7 +255,7 @@ err: return ret; } -static struct driver_d pca954x_driver = { +static struct driver pca954x_driver = { .name = "pca954x", .probe = pca954x_probe, .id_table = pca954x_id, |