[PATCH 2/3] fixup! Rename struct device_d to device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  - 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@xxxxxxxxxxxxxx>
---
 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





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux