[PATCH] i2c: Drop i2c_driver.{owner,name}, 4 of 11
authorLaurent Riffard <laurent.riffard@free.fr>
Sat, 26 Nov 2005 19:40:34 +0000 (20:40 +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 drivers for macintosh.

Signed-off-by: Laurent Riffard <laurent.riffard@free.fr>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/macintosh/therm_adt746x.c
drivers/macintosh/therm_pm72.c
drivers/macintosh/therm_windtunnel.c
drivers/macintosh/windfarm_lm75_sensor.c

index f62c16fab42bf78a663dc3896f0e32fe43abe92f..8bb1d857e14d628bb1bfd0c5dd02633a0d5894c7 100644 (file)
@@ -171,8 +171,10 @@ detach_thermostat(struct i2c_adapter *adapter)
 }
 
 static struct i2c_driver thermostat_driver = {  
-       .owner          = THIS_MODULE,
-       .name           = "therm_adt746x",
+       .driver = {
+               .owner  = THIS_MODULE,
+               .name   = "therm_adt746x",
+       },
        .attach_adapter = attach_thermostat,
        .detach_adapter = detach_thermostat,
 };
index df00c960fc5a3d82f8be401318f23a318e6a50be..97807be6422bd09d668105ac326eb8779fcf943f 100644 (file)
@@ -283,8 +283,10 @@ static int therm_pm72_detach(struct i2c_adapter *adapter);
 
 static struct i2c_driver therm_pm72_driver =
 {
-       .owner          = THIS_MODULE,
-       .name           = "therm_pm72",
+       .driver = {
+               .owner  = THIS_MODULE,
+               .name   = "therm_pm72",
+       },
        .attach_adapter = therm_pm72_attach,
        .detach_adapter = therm_pm72_detach,
 };
index f3bae0d00ed2096105d53d55782fb1a05d9eb2c3..259f19d5816cc9a07f6d17c93eccfda212451271 100644 (file)
@@ -354,8 +354,10 @@ do_detach( struct i2c_client *client )
 }
 
 static struct i2c_driver g4fan_driver = {  
-       .owner          = THIS_MODULE,
-       .name           = "therm_windtunnel",
+       .driver = {
+               .owner  = THIS_MODULE,
+               .name   = "therm_windtunnel",
+       },
        .id             = I2C_DRIVERID_G4FAN,
        .attach_adapter = do_attach,
        .detach_client  = do_detach,
index 2392789ccf32633777fe80fb9f13ccd68b4372d2..555d0e4eda1d1836b14c1c6bea810b80b096f6e3 100644 (file)
@@ -47,8 +47,10 @@ static int wf_lm75_attach(struct i2c_adapter *adapter);
 static int wf_lm75_detach(struct i2c_client *client);
 
 static struct i2c_driver wf_lm75_driver = {
-       .owner          = THIS_MODULE,
-       .name           = "wf_lm75",
+       .driver = {
+               .owner  = THIS_MODULE,
+               .name   = "wf_lm75",
+       },
        .attach_adapter = wf_lm75_attach,
        .detach_client  = wf_lm75_detach,
 };