Skip to contentSkip to conversation

treewide: remove remaining _d suffixes from struct driver_d/device_d

PATCH Applied Ahmad Fatoum 2 participants 2 messages Sep 13, 2023 – Sep 14, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 treewide: remove remaining _d suffixes from struct driver_d/device_d

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.

---
 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(-)
drivers/firmware/qemu_fw_cfg.c +1 -1
index 4c7d90815be2..1ba81d1b5002 100644
@@ -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),
drivers/net/designware_imx8.c +1 -1
index d81dd499ab29..3dbe5824e6ce 100644
@@ -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,
test/self/regulator.c +1 -1
index e89164700ef1..08073cfc9158 100644
@@ -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)
 {
Signature · 1 line
2.39.2
Applied
#1 lore raw
Quoted 10 lines · 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.

---
 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(-)

Applied, thanks.

Sascha

Quoted 45 lines
drivers/firmware/qemu_fw_cfg.c +1 -1
index 4c7d90815be2..1ba81d1b5002 100644
@@ -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),
drivers/net/designware_imx8.c +1 -1
index d81dd499ab29..3dbe5824e6ce 100644
@@ -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,
test/self/regulator.c +1 -1
index e89164700ef1..08073cfc9158 100644
@@ -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)
 {
Signature · 1 line
2.39.2
Signature · 4 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |