projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63a761e
)
i2c: thunderx: Enable HWMON class probing
author
Jan Glauber
<jglauber@cavium.com>
Fri, 21 Apr 2017 14:43:55 +0000
(16:43 +0200)
committer
Wolfram Sang
<wsa@the-dreams.de>
Fri, 21 Apr 2017 16:05:22 +0000
(18:05 +0200)
Set I2C_CLASS_HWMON to enable automatic probing of BMC devices
by the ipmi-ssif driver.
Signed-off-by: Jan Glauber <jglauber@cavium.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-thunderx-pcidrv.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-thunderx-pcidrv.c
b/drivers/i2c/busses/i2c-thunderx-pcidrv.c
index b4bc884cef93cc100a7cd9f3002e1f313ee96230..ea35a895b5682a033d377d9896b6525fddfd85fd 100644
(file)
--- a/
drivers/i2c/busses/i2c-thunderx-pcidrv.c
+++ b/
drivers/i2c/busses/i2c-thunderx-pcidrv.c
@@
-211,6
+211,7
@@
static int thunder_i2c_probe_pci(struct pci_dev *pdev,
i2c->adap = thunderx_i2c_ops;
i2c->adap.retries = 5;
+ i2c->adap.class = I2C_CLASS_HWMON;
i2c->adap.bus_recovery_info = &octeon_i2c_recovery_info;
i2c->adap.dev.parent = dev;
i2c->adap.dev.of_node = pdev->dev.of_node;