- .owner = THIS_MODULE,
- .name = "tea6420 driver",
- .id = I2C_DRIVERID_TEA6420,
- .flags = I2C_DF_NOTIFY,
- .attach_adapter = tea6420_attach,
- .detach_client = tea6420_detach,
- .command = tea6420_command,
+ .owner = THIS_MODULE,
+ .name = "tea6420",
+ .id = I2C_DRIVERID_TEA6420,
+ .flags = I2C_DF_NOTIFY,
+ .attach_adapter = attach,
+ .detach_client = detach,
+ .command = command,
+};
+
+static struct i2c_client client_template = {
+ I2C_DEVNAME("tea6420"),
+ .driver = &driver,