diff options
author | Jean Delvare <khali@linux-fr.org> | 2005-07-27 15:30:16 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-09-05 12:14:06 -0400 |
commit | 27fe048eb3787d29bf9cf9d6d12077bb8af869a6 (patch) | |
tree | 8207b9c242c9c15e2fe7887e715668b180e9e775 /drivers | |
parent | e647ecf15e365679f0528d7815ab4db0d4802918 (diff) |
[PATCH] hwmon: kill client name lm78-j
Drop the separate client name for the LM78-J chip. This is really
only a later revision of the LM78, with almost no difference and
no difference the driver handles in any case.
This was the only client name that had a dash in it, and special care
had to be taken in libsensors because of it. As we plan to write a new
library soon, I'd like to get rid of this exception before we do.
As a nice side effect, it saves 876 bytes in lm78.ko.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hwmon/lm78.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/hwmon/lm78.c b/drivers/hwmon/lm78.c index 29241469dcba..cf7a2a7f54b5 100644 --- a/drivers/hwmon/lm78.c +++ b/drivers/hwmon/lm78.c | |||
@@ -34,7 +34,7 @@ static unsigned short normal_i2c[] = { 0x20, 0x21, 0x22, 0x23, 0x24, | |||
34 | static unsigned int normal_isa[] = { 0x0290, I2C_CLIENT_ISA_END }; | 34 | static unsigned int normal_isa[] = { 0x0290, I2C_CLIENT_ISA_END }; |
35 | 35 | ||
36 | /* Insmod parameters */ | 36 | /* Insmod parameters */ |
37 | SENSORS_INSMOD_3(lm78, lm78j, lm79); | 37 | SENSORS_INSMOD_2(lm78, lm79); |
38 | 38 | ||
39 | /* Many LM78 constants specified below */ | 39 | /* Many LM78 constants specified below */ |
40 | 40 | ||
@@ -559,10 +559,9 @@ int lm78_detect(struct i2c_adapter *adapter, int address, int kind) | |||
559 | /* Determine the chip type. */ | 559 | /* Determine the chip type. */ |
560 | if (kind <= 0) { | 560 | if (kind <= 0) { |
561 | i = lm78_read_value(new_client, LM78_REG_CHIPID); | 561 | i = lm78_read_value(new_client, LM78_REG_CHIPID); |
562 | if (i == 0x00 || i == 0x20) | 562 | if (i == 0x00 || i == 0x20 /* LM78 */ |
563 | || i == 0x40) /* LM78-J */ | ||
563 | kind = lm78; | 564 | kind = lm78; |
564 | else if (i == 0x40) | ||
565 | kind = lm78j; | ||
566 | else if ((i & 0xfe) == 0xc0) | 565 | else if ((i & 0xfe) == 0xc0) |
567 | kind = lm79; | 566 | kind = lm79; |
568 | else { | 567 | else { |
@@ -578,8 +577,6 @@ int lm78_detect(struct i2c_adapter *adapter, int address, int kind) | |||
578 | 577 | ||
579 | if (kind == lm78) { | 578 | if (kind == lm78) { |
580 | client_name = "lm78"; | 579 | client_name = "lm78"; |
581 | } else if (kind == lm78j) { | ||
582 | client_name = "lm78-j"; | ||
583 | } else if (kind == lm79) { | 580 | } else if (kind == lm79) { |
584 | client_name = "lm79"; | 581 | client_name = "lm79"; |
585 | } | 582 | } |
@@ -788,7 +785,7 @@ static void __exit sm_lm78_exit(void) | |||
788 | 785 | ||
789 | 786 | ||
790 | MODULE_AUTHOR("Frodo Looijaard <frodol@dds.nl>"); | 787 | MODULE_AUTHOR("Frodo Looijaard <frodol@dds.nl>"); |
791 | MODULE_DESCRIPTION("LM78, LM78-J and LM79 driver"); | 788 | MODULE_DESCRIPTION("LM78/LM79 driver"); |
792 | MODULE_LICENSE("GPL"); | 789 | MODULE_LICENSE("GPL"); |
793 | 790 | ||
794 | module_init(sm_lm78_init); | 791 | module_init(sm_lm78_init); |