diff options
author | Alison Schofield <amsfield22@gmail.com> | 2016-07-04 12:19:28 -0700 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2016-07-04 16:27:48 -0700 |
commit | eacc48ce3accfc9092594794b009a40f91331b0e (patch) | |
tree | a4e3a7a9fb0fb2a770833edbb70a2abf1cdf134e | |
parent | 4e6163e859cd572acb4bc2525e00714f6c1905c8 (diff) | |
download | op-kernel-dev-eacc48ce3accfc9092594794b009a40f91331b0e.zip op-kernel-dev-eacc48ce3accfc9092594794b009a40f91331b0e.tar.gz |
hwmon: (jc42) Add I2C_CLASS_HWMON to detection class
In 2011, commit 774466add7c ("hwmon: (jc42) Change detection class")
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. Examples are
JC42.4 compatible chips such as MCP9804 and MCP9808, but also MCP9805,
which is marked as JC42.4 compliant and suggested for use not only for
DIMMS, but also as generic temperature sensor.
Add I2C_CLASS_HWMON as an additional detection class to allow detection
by hwmon class i2c adapters.
Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Cc: Daniel Baluta <daniel.baluta@gmail.com>
[groeck: Updated description]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
-rw-r--r-- | drivers/hwmon/jc42.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/jc42.c b/drivers/hwmon/jc42.c index f67c1bb..d9c4f78 100644 --- a/drivers/hwmon/jc42.c +++ b/drivers/hwmon/jc42.c @@ -542,7 +542,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, |