mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] spi: add coredevice_spi_driver macro as well
@ 2020-08-07  7:29 Ahmad Fatoum
  2020-08-10  6:38 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2020-08-07  7:29 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] spi: add coredevice_spi_driver macro as well
  2020-08-07  7:29 [PATCH] spi: add coredevice_spi_driver macro as well Ahmad Fatoum
@ 2020-08-10  6:38 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2020-08-10  6:38 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

On Fri, Aug 07, 2020 at 09:29:05AM +0200, Ahmad Fatoum wrote:
> 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@pengutronix.de>
> ---
>  include/spi/spi.h | 2 ++
>  1 file changed, 2 insertions(+)

Applied, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-10  6:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-07  7:29 [PATCH] spi: add coredevice_spi_driver macro as well Ahmad Fatoum
2020-08-10  6:38 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox