提交 a33ca232 编写于 作者: L Laurent Riffard 提交者: Greg Kroah-Hartman

[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: NLaurent Riffard <laurent.riffard@free.fr>
Signed-off-by: NJean Delvare <khali@linux-fr.org>
Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 cdaf7934
...@@ -171,8 +171,10 @@ detach_thermostat(struct i2c_adapter *adapter) ...@@ -171,8 +171,10 @@ detach_thermostat(struct i2c_adapter *adapter)
} }
static struct i2c_driver thermostat_driver = { static struct i2c_driver thermostat_driver = {
.owner = THIS_MODULE, .driver = {
.name = "therm_adt746x", .owner = THIS_MODULE,
.name = "therm_adt746x",
},
.attach_adapter = attach_thermostat, .attach_adapter = attach_thermostat,
.detach_adapter = detach_thermostat, .detach_adapter = detach_thermostat,
}; };
......
...@@ -283,8 +283,10 @@ static int therm_pm72_detach(struct i2c_adapter *adapter); ...@@ -283,8 +283,10 @@ static int therm_pm72_detach(struct i2c_adapter *adapter);
static struct i2c_driver therm_pm72_driver = static struct i2c_driver therm_pm72_driver =
{ {
.owner = THIS_MODULE, .driver = {
.name = "therm_pm72", .owner = THIS_MODULE,
.name = "therm_pm72",
},
.attach_adapter = therm_pm72_attach, .attach_adapter = therm_pm72_attach,
.detach_adapter = therm_pm72_detach, .detach_adapter = therm_pm72_detach,
}; };
......
...@@ -354,8 +354,10 @@ do_detach( struct i2c_client *client ) ...@@ -354,8 +354,10 @@ do_detach( struct i2c_client *client )
} }
static struct i2c_driver g4fan_driver = { static struct i2c_driver g4fan_driver = {
.owner = THIS_MODULE, .driver = {
.name = "therm_windtunnel", .owner = THIS_MODULE,
.name = "therm_windtunnel",
},
.id = I2C_DRIVERID_G4FAN, .id = I2C_DRIVERID_G4FAN,
.attach_adapter = do_attach, .attach_adapter = do_attach,
.detach_client = do_detach, .detach_client = do_detach,
......
...@@ -47,8 +47,10 @@ static int wf_lm75_attach(struct i2c_adapter *adapter); ...@@ -47,8 +47,10 @@ static int wf_lm75_attach(struct i2c_adapter *adapter);
static int wf_lm75_detach(struct i2c_client *client); static int wf_lm75_detach(struct i2c_client *client);
static struct i2c_driver wf_lm75_driver = { static struct i2c_driver wf_lm75_driver = {
.owner = THIS_MODULE, .driver = {
.name = "wf_lm75", .owner = THIS_MODULE,
.name = "wf_lm75",
},
.attach_adapter = wf_lm75_attach, .attach_adapter = wf_lm75_attach,
.detach_client = wf_lm75_detach, .detach_client = wf_lm75_detach,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册