diff options
author | Jean Delvare <khali@linux-fr.org> | 2009-12-14 21:17:27 +0100 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2009-12-14 21:17:27 +0100 |
commit | e5e9f44c246fbafe723e579e9fe887677beb40e4 (patch) | |
tree | 53d65b38b6db7aa250400056091a760cced42cd7 /drivers/hwmon/gl518sm.c | |
parent | 1f86df49ddfd0067cce941187d57b2fd2f749a9e (diff) | |
download | kernel_samsung_espresso10-e5e9f44c246fbafe723e579e9fe887677beb40e4.zip kernel_samsung_espresso10-e5e9f44c246fbafe723e579e9fe887677beb40e4.tar.gz kernel_samsung_espresso10-e5e9f44c246fbafe723e579e9fe887677beb40e4.tar.bz2 |
i2c: Drop I2C_CLIENT_INSMOD_2 to 8
These macros simply declare an enum, so drivers might as well declare
it themselves. This puts an end to the arbitrary limit of 8 chip types
per i2c driver.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Tested-by: Wolfram Sang <w.sang@pengutronix.de>
Diffstat (limited to 'drivers/hwmon/gl518sm.c')
-rw-r--r-- | drivers/hwmon/gl518sm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/hwmon/gl518sm.c b/drivers/hwmon/gl518sm.c index e9407ac..e7ae574 100644 --- a/drivers/hwmon/gl518sm.c +++ b/drivers/hwmon/gl518sm.c @@ -46,8 +46,7 @@ /* Addresses to scan */ static const unsigned short normal_i2c[] = { 0x2c, 0x2d, I2C_CLIENT_END }; -/* Insmod parameters */ -I2C_CLIENT_INSMOD_2(gl518sm_r00, gl518sm_r80); +enum chips { gl518sm_r00, gl518sm_r80 }; /* Many GL518 constants specified below */ |