Return-path: Received: from smtp-out1.tiscali.nl ([195.241.79.176]:47406 "EHLO smtp-out1.tiscali.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755508Ab1DFSY4 (ORCPT ); Wed, 6 Apr 2011 14:24:56 -0400 Subject: Re: [PATCH] rfkill: Regulator consumer driver for rfkill From: Paul Bolle To: Johannes Berg Cc: Mark Brown , Antonio Ospite , linux-wireless@vger.kernel.org, openezx-devel@lists.openezx.org, "John W . Linville" , Liam Girdwood , linux-kernel@vger.kernel.org, Marek Vasut , Guiming Zhuo In-Reply-To: <1302099669.4090.1.camel@jlt3.sipsolutions.net> References: <1302081679-812-1-git-send-email-ospite@studenti.unina.it> <20110406141131.GC2810@opensource.wolfsonmicro.com> <1302099669.4090.1.camel@jlt3.sipsolutions.net> Content-Type: text/plain; charset="UTF-8" Date: Wed, 06 Apr 2011 20:12:22 +0200 Message-ID: <1302113542.22852.7.camel@x61.thuisdomein> Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wed, 2011-04-06 at 16:21 +0200, Johannes Berg wrote: > On Wed, 2011-04-06 at 23:11 +0900, Mark Brown wrote: > > On Wed, Apr 06, 2011 at 11:21:19AM +0200, Antonio Ospite wrote: > > > > > + tristate "Generic rfkill regulator driver" > > > + depends on RFKILL || !RFKILL > > > > That looks *odd*. > > That's normal for rfkill -- if RFKILL==n then this can be anything since > the rfkill API goes all no-op inlines, but if RFKILL==m then this can't > be ==y. "depends on !RFKILL" covers the former, "depends on RFKILL" the > latter. But doesn't depends on RFKILL || !RFKILL always evaluate to true when running "make *config"? (Even if RFKILL is an unknown symbol when that expression is parsed!) I'd say that dependencies such as this one might as well be dropped from their Kconfig file. Paul Bolle