From: Michael Ellerman <mpe@ellerman•id.au>
To: Jani Nikula <jani.nikula@intel•com>
Cc: linux-fbdev@vger•kernel.org, Randy Dunlap <rdunlap@infradead•org>,
Daniel Drake <dsd@laptop•org>,
Jens Frederich <jfrederich@gmail•com>,
David Airlie <airlied@linux•ie>,
Greg Kroah-Hartman <gregkh@linuxfoundation•org>,
Jon Nettleton <jon.nettleton@gmail•com>,
Jingoo Han <jg1.han@samsung•com>,
linux-kernel@vger•kernel.org, dri-devel@lists•freedesktop.org,
platform-driver-x86@vger•kernel.org,
Bryan Wu <cooloney@gmail•com>,
linuxppc-dev@lists•ozlabs.org,
Tomi Valkeinen <tomi.valkeinen@ti•com>,
Laurent Pinchart <laurent.pinchart@ideasonboard•com>,
Daniel Vetter <daniel.vetter@intel•com>,
Darren Hart <dvhart@infradead•org>,
Lee Jones <lee.jones@linaro•org>,
Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft•com>,
linux-usb@vger•kernel.org
Subject: Re: [PATCH] drivers: depend on instead of select BACKLIGHT_CLASS_DEVICE and ACPI_VIDEO
Date: Wed, 29 Oct 2014 19:27:42 +1100 [thread overview]
Message-ID: <1414571262.5922.0.camel@concordia> (raw)
In-Reply-To: <87tx2njooz.fsf@intel.com>
On Wed, 2014-10-29 at 09:54 +0200, Jani Nikula wrote:
> On Wed, 29 Oct 2014, Michael Ellerman <mpe@ellerman•id.au> wrote:
> > On Tue, 2014-10-28 at 13:29 -0700, Randy Dunlap wrote:
> >> On 10/27/14 06:13, Tomi Valkeinen wrote:
> >> > I also think the 'depends on BACKLIGHT_CLASS_DEVICE ||
> >> > BACKLIGHT_CLASS_DEVICE=n' pattern is quite... interesting (i.e. sounds
> >> > like a hack to me =).
> >>
> >> It does exactly what is needed and it is used in many places in kernel
> >> Kconfig files.
> >
> > Is there any reason you can't do:
> >
> > depends on BACKLIGHT_CLASS_DEVICE != m
>
> That's not the same thing. The FOO || FOO=n allows for all options, but
> forbids it being a module when the option depending on it is
> built-in.
OK right. Because "BAR depends on FOO" is short for "depends on FOO=y || FOO=m",
but also adds the implicit condition that if FOO=m then BAR must also be m.
Thanks for clueing me in.
cheers
prev parent reply other threads:[~2014-10-29 8:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-17 21:13 [PATCH] drivers: depend on instead of select BACKLIGHT_CLASS_DEVICE and ACPI_VIDEO Jani Nikula
2014-10-21 20:50 ` Darren Hart
2014-10-22 8:02 ` Tomi Valkeinen
2014-10-23 8:10 ` Daniel Vetter
2014-10-23 11:38 ` Tomi Valkeinen
2014-10-27 11:59 ` Jani Nikula
2014-10-27 13:13 ` Tomi Valkeinen
2014-10-28 20:29 ` Randy Dunlap
2014-10-29 3:04 ` Michael Ellerman
2014-10-29 7:54 ` Jani Nikula
2014-10-29 8:27 ` Michael Ellerman [this message]
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=1414571262.5922.0.camel@concordia \
--to=mpe@ellerman$(echo .)id.au \
--cc=airlied@linux$(echo .)ie \
--cc=cooloney@gmail$(echo .)com \
--cc=daniel.vetter@intel$(echo .)com \
--cc=dri-devel@lists$(echo .)freedesktop.org \
--cc=dsd@laptop$(echo .)org \
--cc=dvhart@infradead$(echo .)org \
--cc=gregkh@linuxfoundation$(echo .)org \
--cc=jani.nikula@intel$(echo .)com \
--cc=jfrederich@gmail$(echo .)com \
--cc=jg1.han@samsung$(echo .)com \
--cc=jon.nettleton@gmail$(echo .)com \
--cc=laurent.pinchart@ideasonboard$(echo .)com \
--cc=lee.jones@linaro$(echo .)org \
--cc=linux-fbdev@vger$(echo .)kernel.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-usb@vger$(echo .)kernel.org \
--cc=linuxppc-dev@lists$(echo .)ozlabs.org \
--cc=plagnioj@jcrosoft$(echo .)com \
--cc=platform-driver-x86@vger$(echo .)kernel.org \
--cc=rdunlap@infradead$(echo .)org \
--cc=tomi.valkeinen@ti$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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