]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
hwmon: Discard useless I2C driver IDs
authorJean Delvare <khali@linux-fr.org>
Thu, 3 Jan 2008 18:44:09 +0000 (19:44 +0100)
committerMark M. Hoffman <mhoffman@lightlink.com>
Fri, 8 Feb 2008 01:39:44 +0000 (20:39 -0500)
Many I2C hwmon drivers define a driver ID but no other code references
these, meaning that they are useless. Discard them, along with a few
IDs which are defined but never used at all.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
20 files changed:
drivers/hwmon/adm1021.c
drivers/hwmon/adm1025.c
drivers/hwmon/adm9240.c
drivers/hwmon/asb100.c
drivers/hwmon/ds1621.c
drivers/hwmon/fscher.c
drivers/hwmon/fscpos.c
drivers/hwmon/lm75.c
drivers/hwmon/lm78.c
drivers/hwmon/lm80.c
drivers/hwmon/lm83.c
drivers/hwmon/lm85.c
drivers/hwmon/lm87.c
drivers/hwmon/lm90.c
drivers/hwmon/lm92.c
drivers/hwmon/w83l785ts.c
drivers/i2c/chips/eeprom.c
drivers/i2c/chips/pcf8574.c
drivers/i2c/chips/pcf8591.c
include/linux/i2c-id.h

index ebdc6d7db2318c295a84deca0db123b04091bd11..b96be772e498c82528657ae7ea969fb2c8268da5 100644 (file)
@@ -115,7 +115,6 @@ static struct i2c_driver adm1021_driver = {
        .driver = {
                .name   = "adm1021",
        },
-       .id             = I2C_DRIVERID_ADM1021,
        .attach_adapter = adm1021_attach_adapter,
        .detach_client  = adm1021_detach_client,
 };
index c7a365a9e40551be9252af9bf57d916636546eeb..33cc58b2fadbf91ae1364be0a4379a43d305140c 100644 (file)
@@ -123,7 +123,6 @@ static struct i2c_driver adm1025_driver = {
        .driver = {
                .name   = "adm1025",
        },
-       .id             = I2C_DRIVERID_ADM1025,
        .attach_adapter = adm1025_attach_adapter,
        .detach_client  = adm1025_detach_client,
 };
index c17d0b6b3283f306677b9107c711b2e02574ce69..7887192c42366ff2c9c5a55b17f154dbf1eaa2b7 100644 (file)
@@ -141,7 +141,6 @@ static struct i2c_driver adm9240_driver = {
        .driver = {
                .name   = "adm9240",
        },
-       .id             = I2C_DRIVERID_ADM9240,
        .attach_adapter = adm9240_attach_adapter,
        .detach_client  = adm9240_detach_client,
 };
index 9460dba4cf74ff0bd0dbc1575f516d89d34c7d9d..815493b9788dd93af58bb7bdce30b0c648bf49e1 100644 (file)
@@ -221,7 +221,6 @@ static struct i2c_driver asb100_driver = {
        .driver = {
                .name   = "asb100",
        },
-       .id             = I2C_DRIVERID_ASB100,
        .attach_adapter = asb100_attach_adapter,
        .detach_client  = asb100_detach_client,
 };
index b7bd000b130f4a76e2316f3036ec4817fc55437f..3f5163de13c1b9f0db29c7a98d7c2f19f7c65559 100644 (file)
@@ -94,7 +94,6 @@ static struct i2c_driver ds1621_driver = {
        .driver = {
                .name   = "ds1621",
        },
-       .id             = I2C_DRIVERID_DS1621,
        .attach_adapter = ds1621_attach_adapter,
        .detach_client  = ds1621_detach_client,
 };
index e67c36953b2d8d2f46c9af5825be753f16da1855..721c70177b17c71c967d4d4d3fc5108b978e046e 100644 (file)
@@ -123,7 +123,6 @@ static struct i2c_driver fscher_driver = {
        .driver = {
                .name   = "fscher",
        },
-       .id             = I2C_DRIVERID_FSCHER,
        .attach_adapter = fscher_attach_adapter,
        .detach_client  = fscher_detach_client,
 };
index 92c9703d0ac0d16ee0d576f796f626a4fac170c3..2f1075323a1e2f6b976f9077bb566e03f2d0e788 100644 (file)
@@ -105,7 +105,6 @@ static struct i2c_driver fscpos_driver = {
        .driver = {
                .name   = "fscpos",
        },
-       .id             = I2C_DRIVERID_FSCPOS,
        .attach_adapter = fscpos_attach_adapter,
        .detach_client  = fscpos_detach_client,
 };
index 37a8cc032ffa9a0b535ac26b9d07d37edb78bd3e..e5c35a355a571b023b04cefe6a6c57671e01875d 100644 (file)
@@ -74,7 +74,6 @@ static struct i2c_driver lm75_driver = {
        .driver = {
                .name   = "lm75",
        },
-       .id             = I2C_DRIVERID_LM75,
        .attach_adapter = lm75_attach_adapter,
        .detach_client  = lm75_detach_client,
 };
index 934378eb4f8f197ad23de3ca6a363971cffba21a..0a9eb1f6f4e4a7028177ca235f6b6e5a6973bc41 100644 (file)
@@ -168,7 +168,6 @@ static struct i2c_driver lm78_driver = {
        .driver = {
                .name   = "lm78",
        },
-       .id             = I2C_DRIVERID_LM78,
        .attach_adapter = lm78_attach_adapter,
        .detach_client  = lm78_detach_client,
 };
index 063cdba00a884c5eab975101d61d3b58a24a0ddb..0bde0a382ef14f0d49030e628b186ca8cdfdc25a 100644 (file)
@@ -147,7 +147,6 @@ static struct i2c_driver lm80_driver = {
        .driver = {
                .name   = "lm80",
        },
-       .id             = I2C_DRIVERID_LM80,
        .attach_adapter = lm80_attach_adapter,
        .detach_client  = lm80_detach_client,
 };
index 0336b4572a61bd8001d909b78d1c69979e7e9889..6e8903a6e902c38a1a686aedac5413159585a29e 100644 (file)
@@ -133,7 +133,6 @@ static struct i2c_driver lm83_driver = {
        .driver = {
                .name   = "lm83",
        },
-       .id             = I2C_DRIVERID_LM83,
        .attach_adapter = lm83_attach_adapter,
        .detach_client  = lm83_detach_client,
 };
index 9f1c6f1ee035d764352ac0e59cc5735721a8b6bd..43212db7c79800b34d03e14759918ae24d127428 100644 (file)
@@ -367,7 +367,6 @@ static struct i2c_driver lm85_driver = {
        .driver = {
                .name   = "lm85",
        },
-       .id             = I2C_DRIVERID_LM85,
        .attach_adapter = lm85_attach_adapter,
        .detach_client  = lm85_detach_client,
 };
index 3ab4c3f0efdd2f10bd8e3653bc7c66dd3f6f1895..7bedf7455e9a084e4af05dd5b5ef65a302c67e41 100644 (file)
@@ -171,7 +171,6 @@ static struct i2c_driver lm87_driver = {
        .driver = {
                .name   = "lm87",
        },
-       .id             = I2C_DRIVERID_LM87,
        .attach_adapter = lm87_attach_adapter,
        .detach_client  = lm87_detach_client,
 };
index 116093d0eb3ea2834b8b48bdae704acadfadc9db..f7ec95bedbf6a5c294c0f17c6b97063aa3bd4da5 100644 (file)
@@ -204,7 +204,6 @@ static struct i2c_driver lm90_driver = {
        .driver = {
                .name   = "lm90",
        },
-       .id             = I2C_DRIVERID_LM90,
        .attach_adapter = lm90_attach_adapter,
        .detach_client  = lm90_detach_client,
 };
index 61d1bd1d5b6e971d9e6a2f89bb885c36c3079951..af5c77d568fea208b9730c0e37a4ad8552df2e47 100644 (file)
@@ -428,7 +428,6 @@ static struct i2c_driver lm92_driver = {
        .driver = {
                .name   = "lm92",
        },
-       .id             = I2C_DRIVERID_LM92,
        .attach_adapter = lm92_attach_adapter,
        .detach_client  = lm92_detach_client,
 };
index b5db354e2f198952a095d4ccf8e7632f9d591dc6..1d6259d29e74dc4b32e0926653f5ff27a1d45f91 100644 (file)
@@ -96,7 +96,6 @@ static struct i2c_driver w83l785ts_driver = {
        .driver = {
                .name   = "w83l785ts",
        },
-       .id             = I2C_DRIVERID_W83L785TS,
        .attach_adapter = w83l785ts_attach_adapter,
        .detach_client  = w83l785ts_detach_client,
 };
index fde297b21ad72b8dc36eddcc2d2e65ae0f5b4954..7dee001e5133bc7df391bc187e28ae082b9315d2 100644 (file)
@@ -71,7 +71,6 @@ static struct i2c_driver eeprom_driver = {
        .driver = {
                .name   = "eeprom",
        },
-       .id             = I2C_DRIVERID_EEPROM,
        .attach_adapter = eeprom_attach_adapter,
        .detach_client  = eeprom_detach_client,
 };
index b3b830ccf209ec7e0b1aac96f14bc8d5e8797943..e5b31329b56e146e1022be115c0d7e0cbdc88ede 100644 (file)
@@ -67,7 +67,6 @@ static struct i2c_driver pcf8574_driver = {
        .driver = {
                .name   = "pcf8574",
        },
-       .id             = I2C_DRIVERID_PCF8574,
        .attach_adapter = pcf8574_attach_adapter,
        .detach_client  = pcf8574_detach_client,
 };
index 865f4409c06bd343ee3c5f66b8595a17170a9318..66c7c3bb9429754bbe7f6c31737feefdda750fa0 100644 (file)
@@ -92,7 +92,6 @@ static struct i2c_driver pcf8591_driver = {
        .driver = {
                .name   = "pcf8591",
        },
-       .id             = I2C_DRIVERID_PCF8591,
        .attach_adapter = pcf8591_attach_adapter,
        .detach_client  = pcf8591_detach_client,
 };
index dc373e5eb262fd6ac06fd9c08db6ee97574e04cc..b979112f74e0d3aca3242d5ca8f8fda9c96067ac 100644 (file)
 
 #define I2C_DRIVERID_I2CDEV    900
 
-/* IDs --   Use DRIVERIDs 1000-1999 for sensors.
-   These were originally in sensors.h in the lm_sensors package */
-#define I2C_DRIVERID_LM78 1002
-#define I2C_DRIVERID_LM75 1003
-#define I2C_DRIVERID_EEPROM 1005
-#define I2C_DRIVERID_LM80 1007
-#define I2C_DRIVERID_ADM1021 1008
-#define I2C_DRIVERID_ADM9240 1009
-#define I2C_DRIVERID_LTC1710 1010
-#define I2C_DRIVERID_BT869 1013
-#define I2C_DRIVERID_MAXILIFE 1014
-#define I2C_DRIVERID_MATORB 1015
-#define I2C_DRIVERID_THMC50 1017
-#define I2C_DRIVERID_ADM1025 1020
-#define I2C_DRIVERID_LM87 1021
-#define I2C_DRIVERID_PCF8574 1022
-#define I2C_DRIVERID_MTP008 1023
-#define I2C_DRIVERID_DS1621 1024
-#define I2C_DRIVERID_ADM1024 1025
-#define I2C_DRIVERID_CH700X 1027 /* single driver for CH7003-7009 digital pc to tv encoders */
-#define I2C_DRIVERID_FSCPOS 1028
-#define I2C_DRIVERID_FSCSCY 1029
-#define I2C_DRIVERID_PCF8591 1030
-#define I2C_DRIVERID_LM92 1033
-#define I2C_DRIVERID_SMARTBATT 1035
-#define I2C_DRIVERID_BMCSENSORS 1036
-#define I2C_DRIVERID_FS451 1037
-#define I2C_DRIVERID_LM85 1039
-#define I2C_DRIVERID_LM83 1040
-#define I2C_DRIVERID_LM90 1042
-#define I2C_DRIVERID_ASB100 1043
-#define I2C_DRIVERID_FSCHER 1046
-#define I2C_DRIVERID_W83L785TS 1047
 #define I2C_DRIVERID_OV7670 1048       /* Omnivision 7670 camera */
 
 /*