[PATCH 2/3] fixup! Rename struct device_d to device
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Jan 9 03:09:20 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 | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/driver.h b/include/driver.h
index c789f3151e70..dfe1878163ac 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -121,6 +121,9 @@ struct driver {
/*@}*/ /* do not delete, doxygen relevant */
+/* Legacy naming for out-of-tree patches. Will be phased out in future. */
+#define device_d device
+
#define RW_SIZE(x) (x)
#define RW_SIZE_MASK 0x7
--
2.30.2
More information about the barebox
mailing list