From: Jan Glauber Date: Fri, 21 Apr 2017 14:43:55 +0000 (+0200) Subject: i2c: thunderx: Enable HWMON class probing X-Git-Tag: v4.14-rc1~1008^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=889ef45cd4b64cc4fd6dbebecddb8ea4df8cc1e7;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Wolfram Sang --- diff --git a/drivers/i2c/busses/i2c-thunderx-pcidrv.c b/drivers/i2c/busses/i2c-thunderx-pcidrv.c index b4bc884..ea35a895 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;