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 /arch/sandbox | |
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 'arch/sandbox')
-rw-r--r-- | arch/sandbox/board/board.c | 2 | ||||
-rw-r--r-- | arch/sandbox/board/hostfile.c | 2 | ||||
-rw-r--r-- | arch/sandbox/board/led.c | 2 | ||||
-rw-r--r-- | arch/sandbox/board/power.c | 2 | ||||
-rw-r--r-- | arch/sandbox/board/watchdog.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/arch/sandbox/board/board.c b/arch/sandbox/board/board.c index 7857ede5c6..c8d1c99897 100644 --- a/arch/sandbox/board/board.c +++ b/arch/sandbox/board/board.c @@ -68,7 +68,7 @@ static struct of_device_id sandbox_dt_ids[] = { }; BAREBOX_DEEP_PROBE_ENABLE(sandbox_dt_ids); -static struct driver_d sandbox_board_drv = { +static struct driver sandbox_board_drv = { .name = "sandbox-board", .of_compatible = sandbox_dt_ids, .probe = devices_init, diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c index a6273664d3..436a7503be 100644 --- a/arch/sandbox/board/hostfile.c +++ b/arch/sandbox/board/hostfile.c @@ -175,7 +175,7 @@ static __maybe_unused struct of_device_id hostfile_dt_ids[] = { } }; -static struct driver_d hf_drv = { +static struct driver hf_drv = { .name = "hostfile", .of_compatible = DRV_OF_COMPAT(hostfile_dt_ids), .probe = hf_probe, diff --git a/arch/sandbox/board/led.c b/arch/sandbox/board/led.c index 02f181b382..a080ae634f 100644 --- a/arch/sandbox/board/led.c +++ b/arch/sandbox/board/led.c @@ -58,7 +58,7 @@ static struct of_device_id sandbox_led_of_ids[] = { { } }; -static struct driver_d sandbox_led_of_driver = { +static struct driver sandbox_led_of_driver = { .name = "sandbox-led", .probe = sandbox_led_of_probe, .remove = sandbox_led_of_remove, diff --git a/arch/sandbox/board/power.c b/arch/sandbox/board/power.c index ba5ab88a81..51f0968447 100644 --- a/arch/sandbox/board/power.c +++ b/arch/sandbox/board/power.c @@ -88,7 +88,7 @@ static __maybe_unused struct of_device_id sandbox_power_dt_ids[] = { { /* sentinel */ } }; -static struct driver_d sandbox_power_drv = { +static struct driver sandbox_power_drv = { .name = "sandbox-power", .of_compatible = sandbox_power_dt_ids, .probe = sandbox_power_probe, diff --git a/arch/sandbox/board/watchdog.c b/arch/sandbox/board/watchdog.c index d54661018d..54e87cdde4 100644 --- a/arch/sandbox/board/watchdog.c +++ b/arch/sandbox/board/watchdog.c @@ -76,7 +76,7 @@ static __maybe_unused struct of_device_id sandbox_watchdog_dt_ids[] = { { /* sentinel */ } }; -static struct driver_d sandbox_watchdog_drv = { +static struct driver sandbox_watchdog_drv = { .name = "sandbox-watchdog", .of_compatible = sandbox_watchdog_dt_ids, .probe = sandbox_watchdog_probe, |