diff options
author | Alvaro G. M <alvaro.gamez@hazent.com> | 2018-03-22 15:37:44 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2018-03-22 17:33:24 +0100 |
commit | 10ecacd7943b661ed1d365e6d1749edabc2b4721 (patch) | |
tree | 6e0be757edfeb7a796b99889c02369c1886d9da0 /drivers/hwmon | |
parent | hwmon: (pmbus/adm1275) Add support for ADM1272 (diff) | |
download | linux-10ecacd7943b661ed1d365e6d1749edabc2b4721.tar.xz linux-10ecacd7943b661ed1d365e6d1749edabc2b4721.zip |
hwmon: (lm92) Add max6635 to lm92_id[]
Since autodetection of this chip was removed, it makes sense to add prefix
max6635 so that the device can be instantiated by its actual name.
Signed-off-by: Alvaro Gamez Machado <alvaro.gamez@hazent.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/lm92.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/hwmon/lm92.c b/drivers/hwmon/lm92.c index 18509b5af11e..d40fe5122e94 100644 --- a/drivers/hwmon/lm92.c +++ b/drivers/hwmon/lm92.c @@ -52,6 +52,7 @@ */ static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4b, I2C_CLIENT_END }; +enum chips { lm92, max6635 }; /* The LM92 registers */ #define LM92_REG_CONFIG 0x01 /* 8-bit, RW */ @@ -329,8 +330,8 @@ static int lm92_probe(struct i2c_client *new_client, */ static const struct i2c_device_id lm92_id[] = { - { "lm92", 0 }, - /* max6635 could be added here */ + { "lm92", lm92 }, + { "max6635", max6635 }, { } }; MODULE_DEVICE_TABLE(i2c, lm92_id); |