projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25da383
)
i2c-iop3xx: Set I2C_CLASS_HWMON to adapter class
author
Arnaud Patard
<arnaud.patard@rtp-net.org>
Tue, 14 Aug 2007 16:37:14 +0000
(18:37 +0200)
committer
Jean Delvare
<khali@hyperion.delvare>
Tue, 14 Aug 2007 16:37:14 +0000
(18:37 +0200)
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>
drivers/i2c/busses/i2c-iop3xx.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-iop3xx.c
b/drivers/i2c/busses/i2c-iop3xx.c
index 440342bc62e183d0d20b8acced8ea0a9a5cd5b86..ace644e21b14380585f05103028a133b02a904af 100644
(file)
--- 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;