[PATCH 3/3] fixup! Rename struct driver_d to driver
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Jan 9 03:09:21 PST 2023
- Out-of-tree patches often add a board driver, which may use the
old device_d/driver_d naming. Especially with bisecting, this can
be a hassle
- We may split up some parts of struct device into a new
struct platform_device like Linux does and we don't want
to break out of tree patches twice.
Thus add the old names as aliases for now.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
include/driver.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/driver.h b/include/driver.h
index dfe1878163ac..2a12952215de 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -123,6 +123,7 @@ struct driver {
/* Legacy naming for out-of-tree patches. Will be phased out in future. */
#define device_d device
+#define driver_d driver
#define RW_SIZE(x) (x)
#define RW_SIZE_MASK 0x7
--
2.30.2
More information about the barebox
mailing list