Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1436561
| From | Alison Schofield <amsfield22@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [RFC PATCH] hwmon: (jc42) Add I2C_CLASS_HWMON to detection class |
| Date | 2016-07-04 21:20 +0200 |
| Message-ID | <rRhzr-14o-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
In 2011, commit 774466add7c810fd7e4c8bcf41995b6799608880 changed
the detection class of these chips to I2C_CLASS_SPD based on this
premise: "makes more sense because these chips always live on
memory modules"
Today these chips have applications beyond memory modules.
Add I2C_CLASS_HWMON as an additional detection class to allow
detection by hwmon class i2c adapters.
Alternative is to replace the SPD w HWMON class, but that carries
risk for existing usage.
Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Cc: Daniel Baluta <daniel.baluta@gmail.com>
---
drivers/hwmon/jc42.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/jc42.c b/drivers/hwmon/jc42.c
index 9887d32..1537ba0 100644
--- a/drivers/hwmon/jc42.c
+++ b/drivers/hwmon/jc42.c
@@ -538,7 +538,7 @@ static const struct i2c_device_id jc42_id[] = {
MODULE_DEVICE_TABLE(i2c, jc42_id);
static struct i2c_driver jc42_driver = {
- .class = I2C_CLASS_SPD,
+ .class = I2C_CLASS_SPD | I2C_CLASS_HWMON,
.driver = {
.name = "jc42",
.pm = JC42_DEV_PM_OPS,
--
2.1.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[RFC PATCH] hwmon: (jc42) Add I2C_CLASS_HWMON to detection class Alison Schofield <amsfield22@gmail.com> - 2016-07-04 21:20 +0200
Re: [RFC PATCH] hwmon: (jc42) Add I2C_CLASS_HWMON to detection class Guenter Roeck <linux@roeck-us.net> - 2016-07-04 23:10 +0200
Re: [RFC PATCH] hwmon: (jc42) Add I2C_CLASS_HWMON to detection class Alison Schofield <amsfield22@gmail.com> - 2016-07-05 01:10 +0200
Re: [RFC PATCH] hwmon: (jc42) Add I2C_CLASS_HWMON to detection class Guenter Roeck <linux@roeck-us.net> - 2016-07-05 01:30 +0200
csiph-web