diff options
Diffstat (limited to 'drivers/media/video/bttv-i2c.c')
-rw-r--r-- | drivers/media/video/bttv-i2c.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/media/video/bttv-i2c.c b/drivers/media/video/bttv-i2c.c index 234a85563769..706dc48df962 100644 --- a/drivers/media/video/bttv-i2c.c +++ b/drivers/media/video/bttv-i2c.c | |||
@@ -109,7 +109,7 @@ static struct i2c_adapter bttv_i2c_adap_sw_template = { | |||
109 | #ifdef I2C_CLASS_TV_ANALOG | 109 | #ifdef I2C_CLASS_TV_ANALOG |
110 | .class = I2C_CLASS_TV_ANALOG, | 110 | .class = I2C_CLASS_TV_ANALOG, |
111 | #endif | 111 | #endif |
112 | I2C_DEVNAME("bt848"), | 112 | .name = "bt848", |
113 | .id = I2C_HW_B_BT848, | 113 | .id = I2C_HW_B_BT848, |
114 | .client_register = attach_inform, | 114 | .client_register = attach_inform, |
115 | }; | 115 | }; |
@@ -270,8 +270,6 @@ static int bttv_i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int | |||
270 | } | 270 | } |
271 | 271 | ||
272 | static struct i2c_algorithm bttv_algo = { | 272 | static struct i2c_algorithm bttv_algo = { |
273 | .name = "bt878", | ||
274 | .id = I2C_ALGO_BIT | I2C_HW_B_BT848 /* FIXME */, | ||
275 | .master_xfer = bttv_i2c_xfer, | 273 | .master_xfer = bttv_i2c_xfer, |
276 | .algo_control = algo_control, | 274 | .algo_control = algo_control, |
277 | .functionality = functionality, | 275 | .functionality = functionality, |
@@ -282,8 +280,8 @@ static struct i2c_adapter bttv_i2c_adap_hw_template = { | |||
282 | #ifdef I2C_CLASS_TV_ANALOG | 280 | #ifdef I2C_CLASS_TV_ANALOG |
283 | .class = I2C_CLASS_TV_ANALOG, | 281 | .class = I2C_CLASS_TV_ANALOG, |
284 | #endif | 282 | #endif |
285 | I2C_DEVNAME("bt878"), | 283 | .name = "bt878", |
286 | .id = I2C_ALGO_BIT | I2C_HW_B_BT848 /* FIXME */, | 284 | .id = I2C_HW_B_BT848 /* FIXME */, |
287 | .algo = &bttv_algo, | 285 | .algo = &bttv_algo, |
288 | .client_register = attach_inform, | 286 | .client_register = attach_inform, |
289 | }; | 287 | }; |
@@ -298,7 +296,7 @@ static int attach_inform(struct i2c_client *client) | |||
298 | if (bttv_debug) | 296 | if (bttv_debug) |
299 | printk(KERN_DEBUG "bttv%d: %s i2c attach [addr=0x%x,client=%s]\n", | 297 | printk(KERN_DEBUG "bttv%d: %s i2c attach [addr=0x%x,client=%s]\n", |
300 | btv->c.nr,client->driver->name,client->addr, | 298 | btv->c.nr,client->driver->name,client->addr, |
301 | i2c_clientname(client)); | 299 | client->name); |
302 | if (!client->driver->command) | 300 | if (!client->driver->command) |
303 | return 0; | 301 | return 0; |
304 | 302 | ||
@@ -326,7 +324,7 @@ void bttv_call_i2c_clients(struct bttv *btv, unsigned int cmd, void *arg) | |||
326 | } | 324 | } |
327 | 325 | ||
328 | static struct i2c_client bttv_i2c_client_template = { | 326 | static struct i2c_client bttv_i2c_client_template = { |
329 | I2C_DEVNAME("bttv internal"), | 327 | .name = "bttv internal", |
330 | }; | 328 | }; |
331 | 329 | ||
332 | 330 | ||