summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Cherian <george.cherian@cavium.com>2017-05-25 11:42:15 +0000
committerWolfram Sang <wsa@the-dreams.de>2017-06-19 16:22:54 +0200
commit227855b95411572c3936228e8eb87f2688da2c03 (patch)
tree33e14b394dc7261b70a71a72fb620c7cccfb6206
parent09a1de04d59870b34b2a8106671c7bdea4ca9a90 (diff)
downloadlinux-stable-227855b95411572c3936228e8eb87f2688da2c03.tar.gz
linux-stable-227855b95411572c3936228e8eb87f2688da2c03.tar.bz2
linux-stable-227855b95411572c3936228e8eb87f2688da2c03.zip
i2c: xlp9xx: Enable HWMON class probing for xlp9xx
Set I2C_CLASS_HWMON for xlp9xx to enable automatic probing of BMC devices by the ipmi-ssif driver. Signed-off-by: George Cherian <george.cherian@cavium.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-rw-r--r--drivers/i2c/busses/i2c-xlp9xx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-xlp9xx.c b/drivers/i2c/busses/i2c-xlp9xx.c
index ae80228104e9..6b106e94bc09 100644
--- a/drivers/i2c/busses/i2c-xlp9xx.c
+++ b/drivers/i2c/busses/i2c-xlp9xx.c
@@ -393,6 +393,7 @@ static int xlp9xx_i2c_probe(struct platform_device *pdev)
init_completion(&priv->msg_complete);
priv->adapter.dev.parent = &pdev->dev;
priv->adapter.algo = &xlp9xx_i2c_algo;
+ priv->adapter.class = I2C_CLASS_HWMON;
ACPI_COMPANION_SET(&priv->adapter.dev, ACPI_COMPANION(&pdev->dev));
priv->adapter.dev.of_node = pdev->dev.of_node;
priv->dev = &pdev->dev;