diff options
author | Jean Delvare <khali@linux-fr.org> | 2009-01-07 10:37:32 -0500 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2009-01-07 10:37:32 -0500 |
commit | 3aed198c35567e5a721f52c0bde23167867e6af6 (patch) | |
tree | 13c17bf66e033c55bff3b8efa8380480118cb3b8 /drivers/hwmon/w83781d.c | |
parent | 6e34b187bc216fc632769fb8b906d3a29ccd8f14 (diff) |
hwmon: Don't overuse I2C_CLIENT_MODULE_PARM
I2C_CLIENT_MODULE_PARM is overkill for force_subclients. We really
only use 4 out of the 48 slots, so we're better defining a custom
variable instead. This change saves 92 bytes of data for each of the
five drivers affected.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Wolfgang Grandegger <wg@grandegger.com>
Acked-by: Marc Hulsman <m.hulsman@tudelft.nl>
Cc: Mark M. Hoffman <mhoffman@lightlink.com>
Diffstat (limited to 'drivers/hwmon/w83781d.c')
-rw-r--r-- | drivers/hwmon/w83781d.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/hwmon/w83781d.c b/drivers/hwmon/w83781d.c index fc12bd412e3a..dbfb30c588d8 100644 --- a/drivers/hwmon/w83781d.c +++ b/drivers/hwmon/w83781d.c | |||
@@ -58,7 +58,10 @@ static const unsigned short normal_i2c[] = { 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, | |||
58 | 0x2e, 0x2f, I2C_CLIENT_END }; | 58 | 0x2e, 0x2f, I2C_CLIENT_END }; |
59 | /* Insmod parameters */ | 59 | /* Insmod parameters */ |
60 | I2C_CLIENT_INSMOD_4(w83781d, w83782d, w83783s, as99127f); | 60 | I2C_CLIENT_INSMOD_4(w83781d, w83782d, w83783s, as99127f); |
61 | I2C_CLIENT_MODULE_PARM(force_subclients, "List of subclient addresses: " | 61 | |
62 | static unsigned short force_subclients[4]; | ||
63 | module_param_array(force_subclients, short, NULL, 0); | ||
64 | MODULE_PARM_DESC(force_subclients, "List of subclient addresses: " | ||
62 | "{bus, clientaddr, subclientaddr1, subclientaddr2}"); | 65 | "{bus, clientaddr, subclientaddr1, subclientaddr2}"); |
63 | 66 | ||
64 | static int reset; | 67 | static int reset; |