diff options
author | Jan Glauber <jglauber@cavium.com> | 2017-04-21 16:43:55 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-04-21 18:05:22 +0200 |
commit | 889ef45cd4b64cc4fd6dbebecddb8ea4df8cc1e7 (patch) | |
tree | 4e700f473d5f99ea5859777d3971181ee48e778e | |
parent | 63a761eef55759c0bc725739fe575193c09fa4ef (diff) | |
download | linux-889ef45cd4b64cc4fd6dbebecddb8ea4df8cc1e7.tar.bz2 |
i2c: thunderx: Enable HWMON class probing
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>
-rw-r--r-- | drivers/i2c/busses/i2c-thunderx-pcidrv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-thunderx-pcidrv.c b/drivers/i2c/busses/i2c-thunderx-pcidrv.c index b4bc884cef93..ea35a895b568 100644 --- 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; |