* Difference between select and enable in Kconfig
@ 2003-12-21 2:46 Marcel Holtmann
2003-12-21 4:54 ` Randy.Dunlap
0 siblings, 1 reply; 5+ messages in thread
From: Marcel Holtmann @ 2003-12-21 2:46 UTC (permalink / raw)
To: Linux Kernel Mailing List
Hi,
while porting some of my drivers to 2.6 which use the firmware loader
for example I came to the question whether to use select or enable to
achieve the desired result. Looking at the documention don't gives me
the answer and from zconf.l I feel that both options are the same. Can
anyone please explain me the differences if there are any?
Regards
Marcel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Difference between select and enable in Kconfig
2003-12-21 2:46 Difference between select and enable in Kconfig Marcel Holtmann
@ 2003-12-21 4:54 ` Randy.Dunlap
2003-12-21 17:22 ` Marcel Holtmann
0 siblings, 1 reply; 5+ messages in thread
From: Randy.Dunlap @ 2003-12-21 4:54 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: linux-kernel
On Sun, 21 Dec 2003 03:46:54 +0100 Marcel Holtmann <marcel@holtmann.org> wrote:
| Hi,
|
| while porting some of my drivers to 2.6 which use the firmware loader
| for example I came to the question whether to use select or enable to
| achieve the desired result. Looking at the documention don't gives me
| the answer and from zconf.l I feel that both options are the same. Can
| anyone please explain me the differences if there are any?
I agree, they look like synonyms.
There's nothing about "enable" in Documentation/kbuild/kconfig-language.txt
and there's evidence in zconf.l (as you mention) and in menu.c
that they are the same:
case P_SELECT:
sym2 = prop_get_symbol(prop);
if ((sym->type != S_BOOLEAN && sym->type != S_TRISTATE) ||
(sym2->type != S_BOOLEAN && sym2->type != S_TRISTATE))
fprintf(stderr, "%s:%d:warning: enable is only allowed with boolean and tristate symbols\n",
~~~~~~
--
~Randy
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Difference between select and enable in Kconfig
2003-12-21 4:54 ` Randy.Dunlap
@ 2003-12-21 17:22 ` Marcel Holtmann
2003-12-21 17:34 ` Roman Zippel
0 siblings, 1 reply; 5+ messages in thread
From: Marcel Holtmann @ 2003-12-21 17:22 UTC (permalink / raw)
To: Randy Dunlap; +Cc: Linux Kernel Mailing List, Roman Zippel
Hi Randy,
> | while porting some of my drivers to 2.6 which use the firmware loader
> | for example I came to the question whether to use select or enable to
> | achieve the desired result. Looking at the documention don't gives me
> | the answer and from zconf.l I feel that both options are the same. Can
> | anyone please explain me the differences if there are any?
>
> I agree, they look like synonyms.
> There's nothing about "enable" in Documentation/kbuild/kconfig-language.txt
> and there's evidence in zconf.l (as you mention) and in menu.c
> that they are the same:
>
> case P_SELECT:
> sym2 = prop_get_symbol(prop);
> if ((sym->type != S_BOOLEAN && sym->type != S_TRISTATE) ||
> (sym2->type != S_BOOLEAN && sym2->type != S_TRISTATE))
> fprintf(stderr, "%s:%d:warning: enable is only allowed with boolean and tristate symbols\n",
> ~~~~~~
so both options achieve the same result. Why do we have two different
options for the same stuff? Should we not remove one?
Regards
Marcel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Difference between select and enable in Kconfig
2003-12-21 17:22 ` Marcel Holtmann
@ 2003-12-21 17:34 ` Roman Zippel
2003-12-21 18:06 ` Marcel Holtmann
0 siblings, 1 reply; 5+ messages in thread
From: Roman Zippel @ 2003-12-21 17:34 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: Randy Dunlap, Linux Kernel Mailing List
Hi,
On Sun, 21 Dec 2003, Marcel Holtmann wrote:
> > case P_SELECT:
> > sym2 = prop_get_symbol(prop);
> > if ((sym->type != S_BOOLEAN && sym->type != S_TRISTATE) ||
> > (sym2->type != S_BOOLEAN && sym2->type != S_TRISTATE))
> > fprintf(stderr, "%s:%d:warning: enable is only allowed with boolean and tristate symbols\n",
> > ~~~~~~
>
> so both options achieve the same result. Why do we have two different
> options for the same stuff? Should we not remove one?
It was called first 'enable' and later renamed into 'select', which is now
the official version, so 'enable' could be indeed removed.
bye, Roman
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Difference between select and enable in Kconfig
2003-12-21 17:34 ` Roman Zippel
@ 2003-12-21 18:06 ` Marcel Holtmann
0 siblings, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2003-12-21 18:06 UTC (permalink / raw)
To: Roman Zippel; +Cc: Randy Dunlap, Linux Kernel Mailing List
Hi Roman,
> > so both options achieve the same result. Why do we have two different
> > options for the same stuff? Should we not remove one?
>
> It was called first 'enable' and later renamed into 'select', which is now
> the official version, so 'enable' could be indeed removed.
thanks for the clarification and I have choosen the wrong one. After a
quick grep through the kernel sources I found that
drivers/net/wireless/Kconfig
is the only file that uses the enable option and of course this was the
example I have looked at :(
Regards
Marcel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-12-21 18:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-21 2:46 Difference between select and enable in Kconfig Marcel Holtmann
2003-12-21 4:54 ` Randy.Dunlap
2003-12-21 17:22 ` Marcel Holtmann
2003-12-21 17:34 ` Roman Zippel
2003-12-21 18:06 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox