]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
i2c: xlp9xx: Enable HWMON class probing for xlp9xx
authorGeorge Cherian <george.cherian@cavium.com>
Thu, 25 May 2017 11:42:15 +0000 (11:42 +0000)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 19 Jun 2017 14:22:54 +0000 (16:22 +0200)
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>
drivers/i2c/busses/i2c-xlp9xx.c

index ae80228104e9f6a613669b431f3807e0281fd175..6b106e94bc0959046e94576e45be4685e9ea68c4 100644 (file)
@@ -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;