[PATCH] spi: add coredevice_spi_driver macro as well
Ahmad Fatoum
a.fatoum at pengutronix.de
Fri Aug 7 03:29:05 EDT 2020
Some drivers would benefit from earlier probing, e.g. because they
provide regulators. Add a macro to make registration of such drivers
easier.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
include/spi/spi.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/spi/spi.h b/include/spi/spi.h
index 66e0500d04c0..c5efca1cc31c 100644
--- a/include/spi/spi.h
+++ b/include/spi/spi.h
@@ -515,6 +515,8 @@ static inline int spi_driver_register(struct driver_d *drv)
return register_driver(drv);
}
+#define coredevice_spi_driver(drv) \
+ register_driver_macro(coredevice,spi,drv)
#define device_spi_driver(drv) \
register_driver_macro(device,spi,drv)
--
2.28.0
More information about the barebox
mailing list