mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "Alexander Shiyan" <shc_work@mail.ru>
To: "Sascha Hauer" <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] mfd: mc34708: provide static inline wrapper
Date: Wed, 26 Jun 2013 21:57:06 +0400	[thread overview]
Message-ID: <1372269426.799780740@f180.mail.ru> (raw)
In-Reply-To: <1372235714-5568-1-git-send-email-s.hauer@pengutronix.de>

> If the driver is disabled provide a static inline wrapper for
> mc34708_get() to prevent linker errors.
> 
> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> ---
>  include/mfd/mc34708.h | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/include/mfd/mc34708.h b/include/mfd/mc34708.h
> index f384c62..541c47f 100644
> --- a/include/mfd/mc34708.h
> +++ b/include/mfd/mc34708.h
> @@ -93,7 +93,14 @@ struct mc34708 {
>  	unsigned int		revision;
>  };
>  
> -extern struct mc34708 *mc34708_get(void);
> +#ifdef CONFIG_MFD_MC34708
> +struct mc34708 *mc34708_get(void);
> +#else
> +static inline struct mc34708 *mc34708_get(void)
> +{
> +	return NULL;
> +}
> +#endif
>  
>  extern int mc34708_reg_read(struct mc34708 *mc34708, enum mc34708_reg reg, u32 *val);
>  extern int mc34708_reg_write(struct mc34708 *mc34708, enum mc34708_reg reg, u32 val);
> -- 

Please apply this to master.
I want to merge all m13xxx same as in kernel.
If I get time, of course. :)

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

  reply	other threads:[~2013-06-26 17:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-26  8:35 Sascha Hauer
2013-06-26 17:57 ` Alexander Shiyan [this message]
2013-06-27  6:37   ` Sascha Hauer
2013-06-27  6:51     ` Re[2]: " Alexander Shiyan

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=1372269426.799780740@f180.mail.ru \
    --to=shc_work@mail.ru \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@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