diff options
author | Laurent Riffard <laurent.riffard@free.fr> | 2005-11-26 14:40:34 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-06 01:16:23 -0500 |
commit | a33ca23231a37e28d15da9546b1f3e83dc48284b (patch) | |
tree | 50c59c7dfbf77cb9297dd20d2aa1e3958f5f358d /drivers/macintosh/windfarm_lm75_sensor.c | |
parent | cdaf79349c7d24e1d33acb6497849c9e956a33ea (diff) |
[PATCH] i2c: Drop i2c_driver.{owner,name}, 4 of 11
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>
Diffstat (limited to 'drivers/macintosh/windfarm_lm75_sensor.c')
-rw-r--r-- | drivers/macintosh/windfarm_lm75_sensor.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/macintosh/windfarm_lm75_sensor.c b/drivers/macintosh/windfarm_lm75_sensor.c index 2392789ccf32..555d0e4eda1d 100644 --- a/drivers/macintosh/windfarm_lm75_sensor.c +++ b/drivers/macintosh/windfarm_lm75_sensor.c | |||
@@ -47,8 +47,10 @@ static int wf_lm75_attach(struct i2c_adapter *adapter); | |||
47 | static int wf_lm75_detach(struct i2c_client *client); | 47 | static int wf_lm75_detach(struct i2c_client *client); |
48 | 48 | ||
49 | static struct i2c_driver wf_lm75_driver = { | 49 | static struct i2c_driver wf_lm75_driver = { |
50 | .owner = THIS_MODULE, | 50 | .driver = { |
51 | .name = "wf_lm75", | 51 | .owner = THIS_MODULE, |
52 | .name = "wf_lm75", | ||
53 | }, | ||
52 | .attach_adapter = wf_lm75_attach, | 54 | .attach_adapter = wf_lm75_attach, |
53 | .detach_client = wf_lm75_detach, | 55 | .detach_client = wf_lm75_detach, |
54 | }; | 56 | }; |