From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrian Bunk Subject: Re: [2.6 patch] HID: fix default building of all quirky devices Date: Wed, 15 Oct 2008 20:32:45 +0300 Message-ID: <20081015173245.GA19255@cs181140183.pp.htv.fi> References: <20081015041346.GE4710@cs181140183.pp.htv.fi> <20081015050557.GB20183@cs181140183.pp.htv.fi> <20081015073011.GE20183@cs181140183.pp.htv.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Received: from smtp6.pp.htv.fi ([213.243.153.40]:44415 "EHLO smtp6.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751438AbYJORct (ORCPT ); Wed, 15 Oct 2008 13:32:49 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Linus Torvalds Cc: Jiri Kosina , zippel@linux-m68k.org, sam@ravnborg.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby , Mauro Carvalho Chehab On Wed, Oct 15, 2008 at 10:17:27AM -0700, Linus Torvalds wrote: > > > On Wed, 15 Oct 2008, Linus Torvalds wrote: > > > > And notice how you mis-use select. That's not how to disable a question. A > > question gets disabled by just doing an "if xyz" on the question itself, > > like Adrian did. > > Side note: Adrian too has a very odd and non-obvious way of doing this. > > His patch did config entries like > > config HID_BRIGHT > tristate "Bright" if EMBEDDED > default USB_HID > depends on USB_HID > > which is a really odd way to express this. The much more natural one is > > config HID_BRIGHT > tristate "Bright" if EMBEDDED > depends on USB_HID > default y > > since there's no point in saying "default USB_HID" + "depends on USB_HID", > and that's just confusing. Since it depends on USB_HID, the "default y" > will automatically degrade to whatever USB_HID was set to. For me the more obvious way was what I did, but I agree that your solution looks better. > Linus cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed