]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/dm/platdata.h
dm: core: Allow a list of devices to be declared in one step
[karo-tx-uboot.git] / include / dm / platdata.h
index 0d4d561089a03c7db0416f42bf2a84cde5cc89c8..fbc8a6b3adda18424bd485a0ea39df981143f55e 100644 (file)
@@ -27,4 +27,8 @@ struct driver_info {
 #define U_BOOT_DEVICE(__name)                                          \
        ll_entry_declare(struct driver_info, __name, driver_info)
 
+/* Declare a list of devices. The argument is a driver_info[] array */
+#define U_BOOT_DEVICES(__name)                                         \
+       ll_entry_declare_list(struct driver_info, __name, driver_info)
+
 #endif