From: Andy Shevchenko <andy.shevchenko@gmail.com>
To: Anatolij Gustschin <agust@denx.de>
Cc: Linus Walleij <linus.walleij@linaro.org>,
Alexandre Courbot <gnurou@gmail.com>,
"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v4] gpiolib: Add stubs for gpiod lookup table interface
Date: Thu, 11 May 2017 22:02:41 +0300 [thread overview]
Message-ID: <CAHp75VdziFXdN6an9XdNtL_kAOu_iBtDqu7n26EY0wkR6mkDKA@mail.gmail.com> (raw)
In-Reply-To: <1494527071-6412-1-git-send-email-agust@denx.de>
On Thu, May 11, 2017 at 9:24 PM, Anatolij Gustschin <agust@denx.de> wrote:
> Add stubs for gpiod_add_lookup_table() and gpiod_remove_lookup_table()
> for the !GPIOLIB case to prevent build errors.
>
Thanks!
FWIW:
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
It will fix this kbuild bot complain: https://lkml.org/lkml/2017/4/2/209
> Signed-off-by: Anatolij Gustschin <agust@denx.de>
> ---
> Changes in v4:
> - move stubs to gpio/machine.h
>
> Changes in v3:
> - add stubs for !GPIOLIB case. Drop prototypes, these are
> already in gpio/machine.h
>
> Changes in v2:
> - move gpiod_lookup_table out of #ifdef
>
> include/linux/gpio/machine.h | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/include/linux/gpio/machine.h b/include/linux/gpio/machine.h
> index c0d712d..f738d50 100644
> --- a/include/linux/gpio/machine.h
> +++ b/include/linux/gpio/machine.h
> @@ -56,7 +56,14 @@ struct gpiod_lookup_table {
> .flags = _flags, \
> }
>
> +#ifdef CONFIG_GPIOLIB
> void gpiod_add_lookup_table(struct gpiod_lookup_table *table);
> void gpiod_remove_lookup_table(struct gpiod_lookup_table *table);
> +#else
> +static inline
> +void gpiod_add_lookup_table(struct gpiod_lookup_table *table) {}
> +static inline
> +void gpiod_remove_lookup_table(struct gpiod_lookup_table *table) {}
> +#endif
>
> #endif /* __LINUX_GPIO_MACHINE_H */
> --
> 2.7.4
>
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2017-05-11 19:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-11 18:24 [PATCH v4] gpiolib: Add stubs for gpiod lookup table interface Anatolij Gustschin
2017-05-11 19:02 ` Andy Shevchenko [this message]
2017-05-12 9:27 ` Linus Walleij
2017-05-12 9:38 ` Anatolij Gustschin
2017-05-22 8:54 ` Linus Walleij
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=CAHp75VdziFXdN6an9XdNtL_kAOu_iBtDqu7n26EY0wkR6mkDKA@mail.gmail.com \
--to=andy.shevchenko@gmail.com \
--cc=agust@denx.de \
--cc=gnurou@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).