From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from oproxy7-pub.bluehost.com (oproxy7-pub.bluehost.com [67.222.55.9]) by ozlabs.org (Postfix) with SMTP id 362801007D4 for ; Fri, 16 Dec 2011 03:50:59 +1100 (EST) Message-ID: <4EEA31CB.7070205@xenotime.net> Date: Thu, 15 Dec 2011 09:43:39 -0800 From: Randy Dunlap MIME-Version: 1.0 To: Jiri Kosina Subject: Re: linux-next bad Kconfig for drivers/hid References: <20111209012746.GC20353@thor.bakeyournoodle.com> <4EE19DA0.5010705@goop.org> <20111212003140.GA16353@thor.bakeyournoodle.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Cc: Jeremy Fitzhardinge , LinuxPPC-dev , Linux Kernel ML List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 12/15/2011 02:08 AM, Jiri Kosina wrote: > On Mon, 12 Dec 2011, Tony Breeds wrote: > >> On Mon, Dec 12, 2011 at 12:21:16AM +0100, Jiri Kosina wrote: >>> On Thu, 8 Dec 2011, Jeremy Fitzhardinge wrote: >>>> >>>> Hm. How about making it "depends on HID && POWER_SUPPLY"? I think that >>>> would needlessly disable it if HID is also modular, but I'm not sure how >>>> to fix that. "depends on HID && POWER_SUPPLY && HID == POWER_SUPPLY"? >> >> That would work, but I think technically I think you could end up with >> HID=m and POWER_SUPPLY=m which would still allow HID_BATTERY_STRENGTH=y >> which is the same problem. >> >> I don't know what kind of .config contortions you'd need to do to get >> there. >> >>> How about making it 'default POWER_SUPPLY' instead? >> >> By itself that wont help as POWER_SUPPLY=m statisfies. >> >> So it looks like we have Jeremy's: >> HID && POWER_SUPPLY && HID == POWER_SUPPLY > > Tony, > > have you actually tested this one to work in the configuration you have > been seeing it to fail? > > I don't seem to be able to find any use of '==' in other Kconfig files > (and never used it myself), so I'd like to have confirmation that it > actually works and fixes the problem before I apply it :) Documentation/kbuild/kconfig-language.txt does not list "==": ::= (1) '=' (2) '!=' (3) '(' ')' (4) '!' (5) '&&' (6) '||' (7) -- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code ***