提交 774466ad 编写于 作者: J Jean Delvare 提交者: Jean Delvare

hwmon: (jc42) Change detection class

While the JC42-compatible chips are temperature sensors, I2C_CLASS_SPD
makes more sense because these chips always live on memory modules.
Signed-off-by: NJean Delvare <khali@linux-fr.org>
Cc: Guenter Roeck <guenter.roeck@ericsson.com>
上级 512d1027
...@@ -213,7 +213,7 @@ static const struct dev_pm_ops jc42_dev_pm_ops = { ...@@ -213,7 +213,7 @@ static const struct dev_pm_ops jc42_dev_pm_ops = {
/* This is the driver that will be inserted */ /* This is the driver that will be inserted */
static struct i2c_driver jc42_driver = { static struct i2c_driver jc42_driver = {
.class = I2C_CLASS_HWMON, .class = I2C_CLASS_SPD,
.driver = { .driver = {
.name = "jc42", .name = "jc42",
.pm = JC42_DEV_PM_OPS, .pm = JC42_DEV_PM_OPS,
......
...@@ -409,7 +409,7 @@ void i2c_unlock_adapter(struct i2c_adapter *); ...@@ -409,7 +409,7 @@ void i2c_unlock_adapter(struct i2c_adapter *);
/* i2c adapter classes (bitmask) */ /* i2c adapter classes (bitmask) */
#define I2C_CLASS_HWMON (1<<0) /* lm_sensors, ... */ #define I2C_CLASS_HWMON (1<<0) /* lm_sensors, ... */
#define I2C_CLASS_DDC (1<<3) /* DDC bus on graphics adapters */ #define I2C_CLASS_DDC (1<<3) /* DDC bus on graphics adapters */
#define I2C_CLASS_SPD (1<<7) /* SPD EEPROMs and similar */ #define I2C_CLASS_SPD (1<<7) /* Memory modules */
/* Internal numbers to terminate lists */ /* Internal numbers to terminate lists */
#define I2C_CLIENT_END 0xfffeU #define I2C_CLIENT_END 0xfffeU
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册