[PATCH -next] hwmon: jc42 depends on I2C

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Randy Dunlap
Date: Wednesday, August 11, 2010 - 10:35 am

From: Randy Dunlap <randy.dunlap@oracle.com>

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 <randy.dunlap@oracle.com>
Cc:	lm-sensors@lm-sensors.org
---
 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,
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: Tree for August 11, Stephen Rothwell, (Tue Aug 10, 9:00 pm)
Re: linux-next: Tree for August 11 (hpet), Randy Dunlap, (Wed Aug 11, 8:51 am)
[PATCH -next] hwmon: jc42 depends on I2C, Randy Dunlap, (Wed Aug 11, 10:35 am)
[PATCH -next] firmware: ibft depends on SCSI, Randy Dunlap, (Wed Aug 11, 10:36 am)
Re: [PATCH -next] hwmon: jc42 depends on I2C, Guenter Roeck, (Wed Aug 11, 10:43 am)
Re: linux-next: Tree for August 11 (hpet), john stultz, (Wed Aug 11, 11:06 am)
Re: [lm-sensors] [PATCH -next] hwmon: jc42 depends on I2C, Jean Delvare, (Wed Aug 11, 11:15 am)
Re: [PATCH -next] firmware: ibft depends on SCSI, Peter Jones, (Thu Aug 12, 7:31 am)