From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2] iio: exynos-adc: add experimental touchscreen support
Date: Tue, 22 Jul 2014 20:33:44 +0200 [thread overview]
Message-ID: <5072247.HRN2kuegE2@wuerfel> (raw)
In-Reply-To: <20140722180904.GB5489@core.coreip.homeip.net>
On Tuesday 22 July 2014 11:09:04 Dmitry Torokhov wrote:
> > @@ -565,6 +722,15 @@ static int exynos_adc_probe(struct platform_device *pdev)
> > if (info->data->init_hw)
> > info->data->init_hw(info);
> >
> > + /* leave out any TS related code if unreachable */
> > + if (IS_BUILTIN(CONFIG_INPUT) ||
> > + (IS_MODULE(CONFIG_INPUT) && config_enabled(MODULE)))
>
> This is ugly... We need IS_SUBSYSTEM_AVAILABLE() wrapper for this...
>
> Anyway,
>
> Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
>
>
I actually have a patch to introduce IS_REACHABLE() for this purpose,
but I haven't sent it out for review yet. The main user of this would
be drivers/media, which had the correct logic earlier until someone
tried to "simplify" it by replacing it all with IS_ENABLED()...
Arnd
next prev parent reply other threads:[~2014-07-22 18:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-22 13:03 [PATCH v2] iio: exynos-adc: add experimental touchscreen support Arnd Bergmann
2014-07-22 14:29 ` Varka Bhadram
2014-07-22 18:09 ` Dmitry Torokhov
2014-07-22 18:33 ` Arnd Bergmann [this message]
2014-07-27 21:10 ` Hartmut Knaack
2014-07-27 21:50 ` Heiko Stübner
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=5072247.HRN2kuegE2@wuerfel \
--to=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.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