mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] treewide: remove remaining _d suffixes from struct driver_d/device_d
@ 2023-09-13 11:42 Ahmad Fatoum
  2023-09-14  8:06 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2023-09-13 11:42 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

Some drivers made their way upstream during the switch to removal
of the _d suffix. There's a define to support the old naming still,
so there was no breakage, but let's use the modern naming everywhere.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 drivers/firmware/qemu_fw_cfg.c | 2 +-
 drivers/net/designware_imx8.c  | 2 +-
 test/self/regulator.c          | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/firmware/qemu_fw_cfg.c b/drivers/firmware/qemu_fw_cfg.c
index 4c7d90815be2..1ba81d1b5002 100644
--- a/drivers/firmware/qemu_fw_cfg.c
+++ b/drivers/firmware/qemu_fw_cfg.c
@@ -289,7 +289,7 @@ static const struct of_device_id qemu_fw_cfg_of_match[] = {
 };
 MODULE_DEVICE_TABLE(of, qemu_fw_cfg_of_match);
 
-static struct driver_d qemu_fw_cfg_drv = {
+static struct driver qemu_fw_cfg_drv = {
 	.name = "fw_cfg",
 	.probe  = fw_cfg_probe,
 	.of_compatible = of_match_ptr(qemu_fw_cfg_of_match),
diff --git a/drivers/net/designware_imx8.c b/drivers/net/designware_imx8.c
index d81dd499ab29..3dbe5824e6ce 100644
--- a/drivers/net/designware_imx8.c
+++ b/drivers/net/designware_imx8.c
@@ -186,7 +186,7 @@ static __maybe_unused struct of_device_id eqos_imx8_ids[] = {
 };
 MODULE_DEVICE_TABLE(of, eqos_imx8_ids);
 
-static struct driver_d eqos_imx8_driver = {
+static struct driver eqos_imx8_driver = {
 	.name = "eqos-imx8",
 	.probe = eqos_probe_imx8,
 	.remove = eqos_remove_imx8,
diff --git a/test/self/regulator.c b/test/self/regulator.c
index e89164700ef1..08073cfc9158 100644
--- a/test/self/regulator.c
+++ b/test/self/regulator.c
@@ -161,7 +161,7 @@ static struct driver regulator_test_driver = {
 	.of_match_table = test_regulator_of_match,
 };
 
-static struct device_d *dev;
+static struct device *dev;
 
 static void test_regulator(void)
 {
-- 
2.39.2




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-14  8:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-13 11:42 [PATCH] treewide: remove remaining _d suffixes from struct driver_d/device_d Ahmad Fatoum
2023-09-14  8:06 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox