linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] i2c: xlp9xx: Enable HWMON class probing for xlp9xx
@ 2017-05-25 11:42 George Cherian
  2017-06-19 14:23 ` Wolfram Sang
  0 siblings, 1 reply; 2+ messages in thread
From: George Cherian @ 2017-05-25 11:42 UTC (permalink / raw)
  To: linux-i2c, linux-kernel; +Cc: wsa, George Cherian

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>
---
 drivers/i2c/busses/i2c-xlp9xx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/i2c/busses/i2c-xlp9xx.c b/drivers/i2c/busses/i2c-xlp9xx.c
index ae80228..6b106e9 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;
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] i2c: xlp9xx: Enable HWMON class probing for xlp9xx
  2017-05-25 11:42 [PATCH] i2c: xlp9xx: Enable HWMON class probing for xlp9xx George Cherian
@ 2017-06-19 14:23 ` Wolfram Sang
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2017-06-19 14:23 UTC (permalink / raw)
  To: George Cherian; +Cc: linux-i2c, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 269 bytes --]

On Thu, May 25, 2017 at 11:42:15AM +0000, George Cherian wrote:
> 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>

Applied to for-next, thanks!


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-19 14:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-25 11:42 [PATCH] i2c: xlp9xx: Enable HWMON class probing for xlp9xx George Cherian
2017-06-19 14:23 ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).