]> err.no Git - linux-2.6/commitdiff
[PATCH] i2c: i2c-ibm_iic add I2C_CLASS_HWMON
authorMartin Hicks <mort@bork.org>
Sun, 18 Dec 2005 16:18:01 +0000 (17:18 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 6 Jan 2006 06:16:27 +0000 (22:16 -0800)
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 <mort@bork.org>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/busses/i2c-ibm_iic.c

index 1a587253d716cd5519615fba0ab3524fb3bc4b0f..87fae937e666dfdab0b8f00493a5afa94918e18c 100644 (file)
@@ -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;