From: Russell King <rmk+lkml@arm.linux.org.uk>
To: Adrian Bunk <bunk@stusta.de>
Cc: Andrew Morton <akpm@osdl.org>,
Philip.Blundell@pobox.com, tim@cyberelk.net,
linux-parport@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [2.6 patch] non-PC parport config change
Date: Mon, 17 Jan 2005 10:43:52 +0000 [thread overview]
Message-ID: <20050117104352.A21009@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20050117103317.GM4274@stusta.de>; from bunk@stusta.de on Mon, Jan 17, 2005 at 11:33:17AM +0100
On Mon, Jan 17, 2005 at 11:33:17AM +0100, Adrian Bunk wrote:
> This patch adds a config option PARPORT_NOT_PC (and removes the
> PARPORT_OTHER option) and lets all non-PC parallel ports options depend
> on it.
>
> Advantages:
> - the config structure is IMHO a bit more logical
> - the mega #if in parport.h is gone now
>
> Additionally, it removes the unneeded PARPORT_NEED_GENERIC_OPS #define.
>
> Signed-off-by: Adrian Bunk <bunk@stusta.de>
This actually looks like a nice example where the use of select would
work nicely. IOW:
config PARPORT_ARC
tristate "Archimedes hardware"
depends on ARM && PARPORT
select PARPORT_NOT_PC
config PARPORT_AMIGA
tristate "Amiga builtin port"
depends on AMIGA && PARPORT
select PARPORT_NOT_PC
config PARPORT_NOT_PC
bool
And I notice in passing that you've already used select on this new
configuration option in USB, and this new configuration option is user
visible. Bad.
The golden rule (if you don't wish _me_ to complain) is:
Don't use select on user-visible options. Either make them
non-user visibile or don't use select at all.
In this case, the former is far more preferable because it means that
the existing defconfig files don't need to be fixed for their parports
work again.
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core
next prev parent reply other threads:[~2005-01-17 10:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-17 10:33 [2.6 patch] non-PC parport config change Adrian Bunk
2005-01-17 10:43 ` Russell King [this message]
2005-01-20 17:17 ` Adrian Bunk
-- strict thread matches above, loose matches on Subject: below --
2005-01-31 23:42 Adrian Bunk
2004-12-09 12:01 Adrian Bunk
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=20050117104352.A21009@flint.arm.linux.org.uk \
--to=rmk+lkml@arm.linux.org.uk \
--cc=Philip.Blundell@pobox.com \
--cc=akpm@osdl.org \
--cc=bunk@stusta.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-parport@lists.infradead.org \
--cc=tim@cyberelk.net \
/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