diff options
author | Arnaud Patard <arnaud.patard@rtp-net.org> | 2007-08-14 18:37:14 +0200 |
---|---|---|
committer | Jean Delvare <khali@hyperion.delvare> | 2007-08-14 18:37:14 +0200 |
commit | 432ca994bf7107e88916fd9606ca7402a4571359 (patch) | |
tree | 3b5f455abece510c33f5cf03636f91e46836f6cb | |
parent | 25da383d26a1dcca4f0205769a24e5eac79c6d35 (diff) |
i2c-iop3xx: Set I2C_CLASS_HWMON to adapter class
In order to be able to use sensors on the IOP3xx SoCs, one needs to set
the adapter class to I2C_CLASS_HWMON.
Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
-rw-r--r-- | drivers/i2c/busses/i2c-iop3xx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-iop3xx.c b/drivers/i2c/busses/i2c-iop3xx.c index 440342bc62e..ace644e21b1 100644 --- a/drivers/i2c/busses/i2c-iop3xx.c +++ b/drivers/i2c/busses/i2c-iop3xx.c @@ -490,6 +490,7 @@ iop3xx_i2c_probe(struct platform_device *pdev) memcpy(new_adapter->name, pdev->name, strlen(pdev->name)); new_adapter->id = I2C_HW_IOP3XX; new_adapter->owner = THIS_MODULE; + new_adapter->class = I2C_CLASS_HWMON; new_adapter->dev.parent = &pdev->dev; new_adapter->nr = pdev->id; |