From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guenter Roeck Subject: Re: [PATCH -next] hwmon: jc42 depends on I2C Date: Wed, 11 Aug 2010 10:43:31 -0700 Message-ID: <1281548611.5745.287.camel@groeck-laptop> References: <20100811140009.6ff33109.sfr@canb.auug.org.au> <20100811103511.41428e62.randy.dunlap@oracle.com> Reply-To: guenter.roeck@ericsson.com Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20100811103511.41428e62.randy.dunlap@oracle.com> Sender: linux-kernel-owner@vger.kernel.org To: Randy Dunlap Cc: Stephen Rothwell , "lm-sensors@lm-sensors.org" , "linux-next@vger.kernel.org" , LKML , akpm List-Id: linux-next.vger.kernel.org On Wed, 2010-08-11 at 13:35 -0400, Randy Dunlap wrote: > From: Randy Dunlap > > jc42 uses i2c interfaces, so it should depend on I2C. > > drivers/hwmon/jc42.c:426: error: implicit declaration of function 'i2c_check_functionality' > drivers/hwmon/jc42.c:521: error: implicit declaration of function 'i2c_smbus_read_word_data' > drivers/hwmon/jc42.c:529: error: implicit declaration of function 'i2c_smbus_write_word_data' > drivers/hwmon/jc42.c:580: error: implicit declaration of function 'i2c_add_driver' > drivers/hwmon/jc42.c:585: error: implicit declaration of function 'i2c_del_driver' > > Signed-off-by: Randy Dunlap > Cc: lm-sensors@lm-sensors.org Acked-by: Guenter Roeck > --- > drivers/hwmon/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > --- linux-next-20100811.orig/drivers/hwmon/Kconfig > +++ linux-next-20100811/drivers/hwmon/Kconfig > @@ -465,6 +465,7 @@ config SENSORS_JZ4740 > > config SENSORS_JC42 > tristate "JEDEC JC42.4 compliant temperature sensors" > + depends on I2C > help > If you say yes here you get support for Jedec JC42.4 compliant > temperature sensors. Support will include, but not be limited to,