Skip to contentSkip to conversation

I2C: remove i2c_driver's .owner and .name

PATCH In review Laurent riffard 1 participant 1 message Oct 24, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 9/9 I2C: remove i2c_driver's .owner and .name

We should use the i2c_driver.driver's .name and .owner fields instead of the i2c_drivers's ones.

This patch updates the matroxfb driver.

--

 drivers/video/matrox/matroxfb_maven.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

Index: linux-2.6-mm/drivers/video/matrox/matroxfb_maven.c =================================--- linux-2.6-mm.orig/drivers/video/matrox/matroxfb_maven.c +++ linux-2.6-mm/drivers/video/matrox/matroxfb_maven.c
@@ -1293,8 +1293,10 @@
}

static struct i2c_driver maven_driver={
- .owner = THIS_MODULE,
- .name = "maven",
+ .driver = {
+ .owner = THIS_MODULE,
+ .name = "maven",
+ },
.id = I2C_DRIVERID_MGATVO,
.flags = I2C_DF_NOTIFY,
.attach_adapter = maven_attach_adapter,

--