]> err.no Git - linux-2.6/commitdiff
[PATCH] i2c: Drop i2c_driver.{owner,name}, 2 of 11
authorLaurent Riffard <laurent.riffard@free.fr>
Sat, 26 Nov 2005 19:36:00 +0000 (20:36 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 6 Jan 2006 06:16:23 +0000 (22:16 -0800)
We should use the i2c_driver.driver's .name and .owner fields
instead of the i2c_driver's ones.

This patch updates the miscellaneaous i2c chip drivers.

Signed-off-by: Laurent Riffard <laurent.riffard@free.fr>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 files changed:
drivers/i2c/chips/ds1337.c
drivers/i2c/chips/ds1374.c
drivers/i2c/chips/eeprom.c
drivers/i2c/chips/isp1301_omap.c
drivers/i2c/chips/m41t00.c
drivers/i2c/chips/max6875.c
drivers/i2c/chips/pca9539.c
drivers/i2c/chips/pcf8574.c
drivers/i2c/chips/pcf8591.c
drivers/i2c/chips/rtc8564.c
drivers/i2c/chips/tps65010.c
drivers/i2c/chips/x1205.c

index 65146cbc83905766f4e09d6a1fd022ccbefb9091..a9d4ac770e398b4c130e044eb25a21d930e17d5e 100644 (file)
@@ -52,8 +52,10 @@ static int ds1337_command(struct i2c_client *client, unsigned int cmd,
  * Driver data (common to all clients)
  */
 static struct i2c_driver ds1337_driver = {
-       .owner          = THIS_MODULE,
-       .name           = "ds1337",
+       .driver = {
+               .owner  = THIS_MODULE,
+               .name   = "ds1337",
+       },
        .attach_adapter = ds1337_attach_adapter,
        .detach_client  = ds1337_detach_client,
        .command        = ds1337_command,
index 5a270d60b699d69ae8663bd5bb78c3822b22a4a7..3e3ebd82a423547488016e659e8d27f470d60e52 100644 (file)
@@ -232,8 +232,10 @@ static int ds1374_detach(struct i2c_client *client)
 }
 
 static struct i2c_driver ds1374_driver = {
-       .owner = THIS_MODULE,
-       .name = DS1374_DRV_NAME,
+       .driver = {
+               .owner  = THIS_MODULE,
+               .name   = DS1374_DRV_NAME,
+       },
        .id = I2C_DRIVERID_DS1374,
        .attach_adapter = ds1374_attach,
        .detach_client = ds1374_detach,
index 9bb1f8b3f38cb670b40a2704deddf08cb2c4bd49..d0c9f291500b3fddf036f0f110179e12fae9e526 100644 (file)
@@ -68,8 +68,10 @@ static int eeprom_detach_client(struct i2c_client *client);
 
 /* This is the driver that will be inserted */
 static struct i2c_driver eeprom_driver = {
-       .owner          = THIS_MODULE,
-       .name           = "eeprom",
+       .driver = {
+               .owner  = THIS_MODULE,
+               .name   = "eeprom",
+       },
        .id             = I2C_DRIVERID_EEPROM,
        .attach_adapter = eeprom_attach_adapter,
        .detach_client  = eeprom_detach_client,
index 4f472ba66a02308bb2c6db7c40d99d6ff38d49fd..9f1ec03e698d272a3a22f1036c37c0f32b8542d9 100644 (file)
@@ -1632,8 +1632,10 @@ static int isp1301_scan_bus(struct i2c_adapter *bus)
 }
 
 static struct i2c_driver isp1301_driver = {
-       .owner          = THIS_MODULE,
-       .name           = "isp1301_omap",
+       .driver = {
+               .owner  = THIS_MODULE,
+               .name   = "isp1301_omap",
+       },
        .id             = 1301,         /* FIXME "official", i2c-ids.h */
        .class          = I2C_CLASS_HWMON,
        .attach_adapter = isp1301_scan_bus,
index 13e67836b348d832c01d3ee6fa0057855d777987..92759b26fdcf74944fccb64557edffaf0a9edda2 100644 (file)
@@ -211,8 +211,10 @@ m41t00_detach(struct i2c_client *client)
 }
 
 static struct i2c_driver m41t00_driver = {
-       .owner          = THIS_MODULE,
-       .name           = M41T00_DRV_NAME,
+       .driver = {
+               .owner  = THIS_MODULE,
+               .name   = M41T00_DRV_NAME,
+       },
        .id             = I2C_DRIVERID_STM41T00,
        .attach_adapter = m41t00_attach,
        .detach_client  = m41t00_detach,
index 7e61019e72dd6012083e8b4b9211923c0c04faf7..37051173d233cc46d15cd50fdb59031819d9bb03 100644 (file)
@@ -67,8 +67,10 @@ static int max6875_detach_client(struct i2c_client *client);
 
 /* This is the driver that will be inserted */
 static struct i2c_driver max6875_driver = {
-       .owner          = THIS_MODULE,
-       .name           = "max6875",
+       .driver = {
+               .owner  = THIS_MODULE,
+               .name   = "max6875",
+       },
        .attach_adapter = max6875_attach_adapter,
        .detach_client  = max6875_detach_client,
 };
index 26feb7a4f9423b4a50341cddb456bc67854d2e9f..bb57faa6d5c12e66cf459c3774fb74334e402ab5 100644 (file)
@@ -38,8 +38,10 @@ static int pca9539_detach_client(struct i2c_client *client);
 
 /* This is the driver that will be inserted */
 static struct i2c_driver pca9539_driver = {
-       .owner          = THIS_MODULE,
-       .name           = "pca9539",
+       .driver = {
+               .owner  = THIS_MODULE,
+               .name   = "pca9539",
+       },
        .attach_adapter = pca9539_attach_adapter,
        .detach_client  = pca9539_detach_client,
 };
index 2fae640cf329dc8e674fa2eac36b7c6105e1e5b2..3d4d4d61876be870ead37107460b84f550070272 100644 (file)
@@ -65,8 +65,10 @@ static void pcf8574_init_client(struct i2c_client *client);
 
 /* This is the driver that will be inserted */
 static struct i2c_driver pcf8574_driver = {
-       .owner          = THIS_MODULE,
-       .name           = "pcf8574",
+       .driver = {
+               .owner  = THIS_MODULE,
+               .name   = "pcf8574",
+       },
        .id             = I2C_DRIVERID_PCF8574,
        .attach_adapter = pcf8574_attach_adapter,
        .detach_client  = pcf8574_detach_client,
index 8750f71278e1b0d2d616efa5450e991f7078b6aa..8f41bb3a771c25e4549119c017934850656abe8a 100644 (file)
@@ -88,8 +88,10 @@ static int pcf8591_read_channel(struct device *dev, int channel);
 
 /* This is the driver that will be inserted */
 static struct i2c_driver pcf8591_driver = {
-       .owner          = THIS_MODULE,
-       .name           = "pcf8591",
+       .driver = {
+               .owner  = THIS_MODULE,
+               .name   = "pcf8591",
+       },
        .id             = I2C_DRIVERID_PCF8591,
        .attach_adapter = pcf8591_attach_adapter,
        .detach_client  = pcf8591_detach_client,
index 07494d39438191b783357340198e455aca028c96..6f567e2ee07356884478c9574a27429d409f596b 100644 (file)
@@ -358,8 +358,10 @@ rtc8564_command(struct i2c_client *client, unsigned int cmd, void *arg)
 }
 
 static struct i2c_driver rtc8564_driver = {
-       .owner          = THIS_MODULE,
-       .name           = "RTC8564",
+       .driver = {
+               .owner  = THIS_MODULE,
+               .name   = "RTC8564",
+       },
        .id             = I2C_DRIVERID_RTC8564,
        .attach_adapter = rtc8564_probe,
        .detach_client  = rtc8564_detach,
index 439bf6ceb7896c593fd1b63b993ca85098179f2f..92947a6c7f1f4fb0439a92b0f8ad2f6ab4566304 100644 (file)
@@ -637,8 +637,10 @@ static int __init tps65010_scan_bus(struct i2c_adapter *bus)
 }
 
 static struct i2c_driver tps65010_driver = {
-       .owner          = THIS_MODULE,
-       .name           = "tps65010",
+       .driver = {
+               .owner  = THIS_MODULE,
+               .name   = "tps65010",
+       },
        .attach_adapter = tps65010_scan_bus,
        .detach_client  = __exit_p(tps65010_detach_client),
 };
index c5ff2cee15ae33f72e8614e1d999520a53b9f6f6..6880eabf13809e002c83e8499e15d7dcab254ada 100644 (file)
@@ -105,8 +105,10 @@ static int x1205_command(struct i2c_client *client, unsigned int cmd,
        void *arg);
 
 static struct i2c_driver x1205_driver = {
-       .owner          = THIS_MODULE,
-       .name           = "x1205",
+       .driver = {
+               .owner  = THIS_MODULE,
+               .name   = "x1205",
+       },
        .attach_adapter = &x1205_attach,
        .detach_client  = &x1205_detach,
 };