From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: Lucas Stach <l.stach@pengutronix.de>, barebox@lists.infradead.org
Subject: Re: [PATCH 1/3] i2c: add coredevice_i2c_driver() macro
Date: Tue, 12 May 2020 07:45:23 +0200 [thread overview]
Message-ID: <8205bb72-aa65-6470-9db8-cced6435a9a4@pengutronix.de> (raw)
In-Reply-To: <20200511165019.22278-1-l.stach@pengutronix.de>
On 5/11/20 6:50 PM, Lucas Stach wrote:
> Some i2c device want to be coredevices. Add a macro to avoid
> boilerplate code.
For all three patches:
Tested-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
>
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
> include/i2c/i2c.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/include/i2c/i2c.h b/include/i2c/i2c.h
> index a694e4ab2ff1..cb65c43e4110 100644
> --- a/include/i2c/i2c.h
> +++ b/include/i2c/i2c.h
> @@ -318,6 +318,8 @@ static inline int i2c_driver_register(struct driver_d *drv)
> return register_driver(drv);
> }
>
> +#define coredevice_i2c_driver(drv) \
> + register_driver_macro(coredevice, i2c, drv)
> #define device_i2c_driver(drv) \
> register_driver_macro(device, i2c, drv)
>
>
--
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
next prev parent reply other threads:[~2020-05-12 5:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-11 16:50 Lucas Stach
2020-05-11 16:50 ` [PATCH 2/3] mfd: stpmic1: move to coredevice level Lucas Stach
2020-05-11 16:50 ` [PATCH 3/3] regulator: " Lucas Stach
2020-05-12 5:45 ` Ahmad Fatoum [this message]
2020-05-12 7:49 ` [PATCH 1/3] i2c: add coredevice_i2c_driver() macro Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8205bb72-aa65-6470-9db8-cced6435a9a4@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=l.stach@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox