#define DRIVER_VERSION "24 August 2004"
-#define DRIVER_NAME (isp1301_driver.name)
+#define DRIVER_NAME (isp1301_driver.driver.name)
MODULE_DESCRIPTION("ISP1301 USB OTG Transceiver Driver");
MODULE_LICENSE("GPL");
}
static struct i2c_driver menelaus_i2c_driver = {
- .owner = THIS_MODULE,
- .name = DRIVER_NAME,
- .id = I2C_DRIVERID_EXP0, /*FIXME:accroding to i2c-ids.h */
+ .driver {
+ .name = DRIVER_NAME,
+ },
+ .id = I2C_DRIVERID_MISC, /*FIXME:accroding to i2c-ids.h */
.class = I2C_CLASS_HWMON,
- .flags = I2C_DF_NOTIFY,
.attach_adapter = menelaus_scan_bus,
.detach_client = menelaus_remove,
};
/*-----------------------------------------------------------------------*/
static struct i2c_driver tlv320aic23_driver = {
- .owner = THIS_MODULE,
- .name = "OMAP+TLV320AIC23 codec",
- .id = I2C_DRIVERID_EXP0, /* Experimental ID */
- .flags = I2C_DF_NOTIFY,
+ .driver {
+ .name = "OMAP+TLV320AIC23 codec",
+ },
+ .id = I2C_DRIVERID_MISC, /* Experimental ID */
.attach_adapter = tlv320aic23_attach_adapter,
.detach_client = tlv320aic23_detach_client,
};
/*-------------------------------------------------------------------------*/
#define DRIVER_VERSION "2 May 2005"
-#define DRIVER_NAME (tps65010_driver.name)
+#define DRIVER_NAME (tps65010_driver.driver.name)
MODULE_DESCRIPTION("TPS6501x Power Management Driver");
MODULE_LICENSE("GPL");
}
static struct i2c_driver tps65010_driver = {
- .owner = THIS_MODULE,
- .name = "tps65010",
+ .driver = {
+ .name = "tps65010",
+ },
.id = 888, /* FIXME assign "official" value */
- .flags = I2C_DF_NOTIFY,
.attach_adapter = tps65010_scan_bus,
.detach_client = __exit_p(tps65010_detach_client),
};
return -EBUSY; /* our client is already attached */
client->addr = addr;
- client->flags = I2C_CLIENT_ALLOW_USE;
client->driver = &sensor->driver;
client->adapter = adap;
if (ov9640_powerup())
return NULL;
- driver->owner = THIS_MODULE;
- strlcpy(driver->name, "OV9640 I2C driver", sizeof(driver->name));
- driver->id = I2C_DRIVERID_EXP0;
- driver->flags = I2C_DF_NOTIFY;
+ strlcpy(driver->driver.name, "OV9640 I2C driver", sizeof(driver->driver.name));
+ driver->id = I2C_DRIVERID_MISC;
driver->attach_adapter = ov9640_i2c_probe_adapter;
driver->detach_client = ov9640_i2c_detach_client;
#define I2C_DRIVERID_INFRARED 75 /* I2C InfraRed on Video boards */
#define I2C_DRIVERID_TVP5150 76 /* TVP5150 video decoder */
+#define I2C_DRIVERID_MISC 99 /* Whatever until sorted out */
+
#define I2C_DRIVERID_I2CDEV 900
#define I2C_DRIVERID_ARP 902 /* SMBus ARP Client */
#define I2C_DRIVERID_ALERT 903 /* SMBus Alert Responder Client */