treewide: remove remaining _d suffixes from struct driver_d/device_d
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.
Signed-off-by Ahmad Fatoum <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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
Sascha Hauer
AppliedQuoted 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.
Signed-off-by Ahmad Fatoum <[email protected]>--- 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@@ -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@@ -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@@ -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 |