From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755199Ab0JEP4f (ORCPT ); Tue, 5 Oct 2010 11:56:35 -0400 Received: from cantor2.suse.de ([195.135.220.15]:50935 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751773Ab0JEP4d (ORCPT ); Tue, 5 Oct 2010 11:56:33 -0400 Date: Tue, 5 Oct 2010 17:56:31 +0200 From: Michal Marek To: Jean Delvare Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] i2c: Fix Kconfig dependencies Message-ID: <20101005155631.GA9399@sepie.suse.cz> References: <1286199093-3576-1-git-send-email-mmarek@suse.cz> <20101004180346.59b10af7@endymion.delvare> <20101004223020.GA14702@sepie.suse.cz> <20101005100349.73914574@endymion.delvare> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101005100349.73914574@endymion.delvare> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 05, 2010 at 10:03:49AM +0200, Jean Delvare wrote: > Hmm, too bad. What about the following then? It's nor exactly elegant, > but if it works for you... > > --- > drivers/i2c/Kconfig | 3 ++- > drivers/i2c/algos/Kconfig | 13 +++++++++++++ > 2 files changed, 15 insertions(+), 1 deletion(-) > > --- linux-2.6.36-rc6.orig/drivers/i2c/algos/Kconfig 2010-10-05 09:01:34.000000000 +0200 > +++ linux-2.6.36-rc6/drivers/i2c/algos/Kconfig 2010-10-05 09:40:40.000000000 +0200 > @@ -15,3 +15,16 @@ config I2C_ALGOPCA > tristate "I2C PCA 9564 interfaces" > > endmenu > + > +# In automatic configuration mode, we still have to define the > +# symbols to avoid unmet dependencies. > + > +if I2C_HELPER_AUTO > +config I2C_ALGOBIT > + tristate > +config I2C_ALGOPCF > + tristate > +config I2C_ALGOPCA > + tristate > +endif > + > --- linux-2.6.36-rc6.orig/drivers/i2c/Kconfig 2010-10-05 09:01:34.000000000 +0200 > +++ linux-2.6.36-rc6/drivers/i2c/Kconfig 2010-10-05 09:04:57.000000000 +0200 > @@ -75,7 +75,8 @@ config I2C_HELPER_AUTO > In doubt, say Y. > > config I2C_SMBUS > - tristate "SMBus-specific protocols" if !I2C_HELPER_AUTO > + tristate > + prompt "SMBus-specific protocols" if !I2C_HELPER_AUTO This works for me, thanks! Acked-by: Michal Marek Michal