Skip to content

Commit

Permalink
hwmon: (lm92) Add max6635 to lm92_id[]
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alvaro G. M authored and Guenter Roeck committed Mar 22, 2018
1 parent 4ff0ce2 commit 10ecacd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Documentation/hwmon/lm92
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Supported chips:
Addresses scanned: none, force parameter needed
Datasheet: http://www.national.com/pf/LM/LM76.html
* Maxim MAX6633/MAX6634/MAX6635
Prefix: 'lm92'
Prefix: 'max6635'
Addresses scanned: none, force parameter needed
Datasheet: http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3074

Expand Down
5 changes: 3 additions & 2 deletions drivers/hwmon/lm92.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 10ecacd

Please sign in to comment.