From: Michal Marek <mmarek@suse.cz>
To: Stephen Warren <swarren@wwwdotorg.org>
Cc: sameo@linux.intel.com, lee.jones@linaro.org,
ldewangan@nvidia.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mfd: Make MFD_AS3722 depend on I2C=y
Date: Tue, 19 Nov 2013 08:48:44 +0100 [thread overview]
Message-ID: <528B17DC.9020004@suse.cz> (raw)
In-Reply-To: <528AA08C.6080608@wwwdotorg.org>
On 19.11.2013 00:19, Stephen Warren wrote:
> On 11/18/2013 10:25 AM, Michal Marek wrote:
>> MFD_AS3722 can only be builtin, so it needs I2C builtin as well.
>> With I2C=m, we get:
>>
>> drivers/mfd/as3722.c:372: undefined reference to `devm_regmap_init_i2c'
>> drivers/built-in.o: In function `as3722_i2c_driver_init':
>> drivers/mfd/as3722.c:444: undefined reference to `i2c_register_driver'
>> drivers/built-in.o: In function `as3722_i2c_driver_exit':
>> drivers/mfd/as3722.c:444: undefined reference to `i2c_del_driver'
>
> Shouldn't Kconfig handle this; if a Boolean config option depends on a
> tri-state config option, shouldn't it automatically validate that the
> tri-state is "y" not "m"?
That's what I initially though as well. But then you have cases where
intuitively you prefer the current m -> y promotion:
config EXT3_FS
tristate "Ext3 journalling file system support"
config EXT3_DEFAULTS_TO_ORDERED
bool "Default to 'data=ordered' in ext3"
depends on EXT3_FS
default y
Ternary logic is fun only as long as it is not mixed with boolean :-(.
Michal
next prev parent reply other threads:[~2013-11-19 7:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-18 17:25 Michal Marek
2013-11-18 17:52 ` Lee Jones
2013-11-18 23:19 ` Stephen Warren
2013-11-19 7:48 ` Michal Marek [this message]
2013-11-19 8:20 ` Geert Uytterhoeven
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=528B17DC.9020004@suse.cz \
--to=mmarek@suse.cz \
--cc=ldewangan@nvidia.com \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sameo@linux.intel.com \
--cc=swarren@wwwdotorg.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
Powered by JetHome