From: Martin Hicks Date: Sun, 18 Dec 2005 16:18:01 +0000 (+0100) Subject: [PATCH] i2c: i2c-ibm_iic add I2C_CLASS_HWMON X-Git-Tag: v2.6.16.28-rc1~2294^2~1^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a4787c0d232e16e727b37205dc647337b8974f35;p=karo-tx-linux.git [PATCH] i2c: i2c-ibm_iic add I2C_CLASS_HWMON Add the ibm_iic driver to the HWMON class so it will scan the bus for connected hardware monitor sensors. Signed-off-by: Martin Hicks Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/i2c/busses/i2c-ibm_iic.c b/drivers/i2c/busses/i2c-ibm_iic.c index 1a587253d716..87fae937e666 100644 --- a/drivers/i2c/busses/i2c-ibm_iic.c +++ b/drivers/i2c/busses/i2c-ibm_iic.c @@ -725,6 +725,7 @@ static int __devinit iic_probe(struct ocp_device *ocp){ strcpy(adap->name, "IBM IIC"); i2c_set_adapdata(adap, dev); adap->id = I2C_HW_OCP; + adap->class = I2C_CLASS_HWMON; adap->algo = &iic_algo; adap->client_register = NULL; adap->client_unregister = NULL;