diff options
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/bt832.c | 2 | ||||
-rw-r--r-- | drivers/media/video/bttv-i2c.c | 2 | ||||
-rw-r--r-- | drivers/media/video/ir-kbd-i2c.c | 2 | ||||
-rw-r--r-- | drivers/media/video/ovcamchip/ov6x20.c | 6 | ||||
-rw-r--r-- | drivers/media/video/ovcamchip/ov6x30.c | 4 | ||||
-rw-r--r-- | drivers/media/video/ovcamchip/ovcamchip_core.c | 8 | ||||
-rw-r--r-- | drivers/media/video/tda7432.c | 2 | ||||
-rw-r--r-- | drivers/media/video/tda9875.c | 2 | ||||
-rw-r--r-- | drivers/media/video/tda9887.c | 4 | ||||
-rw-r--r-- | drivers/media/video/tuner-3036.c | 2 | ||||
-rw-r--r-- | drivers/media/video/tvaudio.c | 6 | ||||
-rw-r--r-- | drivers/media/video/tveeprom.c | 2 | ||||
-rw-r--r-- | drivers/media/video/tvmixer.c | 6 |
13 files changed, 24 insertions, 24 deletions
diff --git a/drivers/media/video/bt832.c b/drivers/media/video/bt832.c index a070417e65e6..67ffed8a7fea 100644 --- a/drivers/media/video/bt832.c +++ b/drivers/media/video/bt832.c | |||
@@ -188,7 +188,7 @@ static int bt832_probe(struct i2c_adapter *adap) | |||
188 | if (adap->class & I2C_CLASS_TV_ANALOG) | 188 | if (adap->class & I2C_CLASS_TV_ANALOG) |
189 | return i2c_probe(adap, &addr_data, bt832_attach); | 189 | return i2c_probe(adap, &addr_data, bt832_attach); |
190 | #else | 190 | #else |
191 | if (adap->id == (I2C_ALGO_BIT | I2C_HW_B_BT848)) | 191 | if (adap->id == I2C_HW_B_BT848) |
192 | return i2c_probe(adap, &addr_data, bt832_attach); | 192 | return i2c_probe(adap, &addr_data, bt832_attach); |
193 | #endif | 193 | #endif |
194 | return 0; | 194 | return 0; |
diff --git a/drivers/media/video/bttv-i2c.c b/drivers/media/video/bttv-i2c.c index 82beb5a8a59c..1db95f75ac68 100644 --- a/drivers/media/video/bttv-i2c.c +++ b/drivers/media/video/bttv-i2c.c | |||
@@ -281,7 +281,7 @@ static struct i2c_adapter bttv_i2c_adap_hw_template = { | |||
281 | .class = I2C_CLASS_TV_ANALOG, | 281 | .class = I2C_CLASS_TV_ANALOG, |
282 | #endif | 282 | #endif |
283 | I2C_DEVNAME("bt878"), | 283 | I2C_DEVNAME("bt878"), |
284 | .id = I2C_ALGO_BIT | I2C_HW_B_BT848 /* FIXME */, | 284 | .id = I2C_HW_B_BT848 /* FIXME */, |
285 | .algo = &bttv_algo, | 285 | .algo = &bttv_algo, |
286 | .client_register = attach_inform, | 286 | .client_register = attach_inform, |
287 | }; | 287 | }; |
diff --git a/drivers/media/video/ir-kbd-i2c.c b/drivers/media/video/ir-kbd-i2c.c index 9fc5055e001c..c2f32d522668 100644 --- a/drivers/media/video/ir-kbd-i2c.c +++ b/drivers/media/video/ir-kbd-i2c.c | |||
@@ -429,7 +429,7 @@ static int ir_probe(struct i2c_adapter *adap) | |||
429 | struct i2c_client c; char buf; int i,rc; | 429 | struct i2c_client c; char buf; int i,rc; |
430 | 430 | ||
431 | switch (adap->id) { | 431 | switch (adap->id) { |
432 | case I2C_ALGO_BIT | I2C_HW_B_BT848: | 432 | case I2C_HW_B_BT848: |
433 | probe = probe_bttv; | 433 | probe = probe_bttv; |
434 | break; | 434 | break; |
435 | case I2C_ALGO_SAA7134: | 435 | case I2C_ALGO_SAA7134: |
diff --git a/drivers/media/video/ovcamchip/ov6x20.c b/drivers/media/video/ovcamchip/ov6x20.c index 3433619ad93f..b3f4d266cede 100644 --- a/drivers/media/video/ovcamchip/ov6x20.c +++ b/drivers/media/video/ovcamchip/ov6x20.c | |||
@@ -164,10 +164,10 @@ static int ov6x20_init(struct i2c_client *c) | |||
164 | DDEBUG(4, &c->dev, "entered"); | 164 | DDEBUG(4, &c->dev, "entered"); |
165 | 165 | ||
166 | switch (c->adapter->id) { | 166 | switch (c->adapter->id) { |
167 | case I2C_ALGO_SMBUS | I2C_HW_SMBUS_OV511: | 167 | case I2C_HW_SMBUS_OV511: |
168 | rc = ov_write_regvals(c, regvals_init_6x20_511); | 168 | rc = ov_write_regvals(c, regvals_init_6x20_511); |
169 | break; | 169 | break; |
170 | case I2C_ALGO_SMBUS | I2C_HW_SMBUS_OV518: | 170 | case I2C_HW_SMBUS_OV518: |
171 | rc = ov_write_regvals(c, regvals_init_6x20_518); | 171 | rc = ov_write_regvals(c, regvals_init_6x20_518); |
172 | break; | 172 | break; |
173 | default: | 173 | default: |
@@ -338,7 +338,7 @@ static int ov6x20_mode_init(struct i2c_client *c, struct ovcamchip_window *win) | |||
338 | /******** Palette-specific regs ********/ | 338 | /******** Palette-specific regs ********/ |
339 | 339 | ||
340 | /* OV518 needs 8 bit multiplexed in color mode, and 16 bit in B&W */ | 340 | /* OV518 needs 8 bit multiplexed in color mode, and 16 bit in B&W */ |
341 | if (c->adapter->id == (I2C_ALGO_SMBUS | I2C_HW_SMBUS_OV518)) { | 341 | if (c->adapter->id == I2C_HW_SMBUS_OV518) { |
342 | if (win->format == VIDEO_PALETTE_GREY) | 342 | if (win->format == VIDEO_PALETTE_GREY) |
343 | ov_write_mask(c, 0x13, 0x00, 0x20); | 343 | ov_write_mask(c, 0x13, 0x00, 0x20); |
344 | else | 344 | else |
diff --git a/drivers/media/video/ovcamchip/ov6x30.c b/drivers/media/video/ovcamchip/ov6x30.c index 44a842379b45..6eab458ab792 100644 --- a/drivers/media/video/ovcamchip/ov6x30.c +++ b/drivers/media/video/ovcamchip/ov6x30.c | |||
@@ -301,7 +301,7 @@ static int ov6x30_mode_init(struct i2c_client *c, struct ovcamchip_window *win) | |||
301 | /******** Palette-specific regs ********/ | 301 | /******** Palette-specific regs ********/ |
302 | 302 | ||
303 | if (win->format == VIDEO_PALETTE_GREY) { | 303 | if (win->format == VIDEO_PALETTE_GREY) { |
304 | if (c->adapter->id == (I2C_ALGO_SMBUS | I2C_HW_SMBUS_OV518)) { | 304 | if (c->adapter->id == I2C_HW_SMBUS_OV518) { |
305 | /* Do nothing - we're already in 8-bit mode */ | 305 | /* Do nothing - we're already in 8-bit mode */ |
306 | } else { | 306 | } else { |
307 | ov_write_mask(c, 0x13, 0x20, 0x20); | 307 | ov_write_mask(c, 0x13, 0x20, 0x20); |
@@ -313,7 +313,7 @@ static int ov6x30_mode_init(struct i2c_client *c, struct ovcamchip_window *win) | |||
313 | * Therefore, the OV6630 needs to be in 8-bit multiplexed | 313 | * Therefore, the OV6630 needs to be in 8-bit multiplexed |
314 | * output mode */ | 314 | * output mode */ |
315 | 315 | ||
316 | if (c->adapter->id == (I2C_ALGO_SMBUS | I2C_HW_SMBUS_OV518)) { | 316 | if (c->adapter->id == I2C_HW_SMBUS_OV518) { |
317 | /* Do nothing - we want to stay in 8-bit mode */ | 317 | /* Do nothing - we want to stay in 8-bit mode */ |
318 | /* Warning: Messing with reg 0x13 breaks OV518 color */ | 318 | /* Warning: Messing with reg 0x13 breaks OV518 color */ |
319 | } else { | 319 | } else { |
diff --git a/drivers/media/video/ovcamchip/ovcamchip_core.c b/drivers/media/video/ovcamchip/ovcamchip_core.c index 54dd5612d3b8..b98c64ab7c58 100644 --- a/drivers/media/video/ovcamchip/ovcamchip_core.c +++ b/drivers/media/video/ovcamchip/ovcamchip_core.c | |||
@@ -296,10 +296,10 @@ static int ovcamchip_attach(struct i2c_adapter *adap) | |||
296 | * attach to adapters that are known to contain OV camera chips. */ | 296 | * attach to adapters that are known to contain OV camera chips. */ |
297 | 297 | ||
298 | switch (adap->id) { | 298 | switch (adap->id) { |
299 | case (I2C_ALGO_SMBUS | I2C_HW_SMBUS_OV511): | 299 | case I2C_HW_SMBUS_OV511: |
300 | case (I2C_ALGO_SMBUS | I2C_HW_SMBUS_OV518): | 300 | case I2C_HW_SMBUS_OV518: |
301 | case (I2C_ALGO_SMBUS | I2C_HW_SMBUS_OVFX2): | 301 | case I2C_HW_SMBUS_OVFX2: |
302 | case (I2C_ALGO_SMBUS | I2C_HW_SMBUS_W9968CF): | 302 | case I2C_HW_SMBUS_W9968CF: |
303 | PDEBUG(1, "Adapter ID 0x%06x accepted", adap->id); | 303 | PDEBUG(1, "Adapter ID 0x%06x accepted", adap->id); |
304 | break; | 304 | break; |
305 | default: | 305 | default: |
diff --git a/drivers/media/video/tda7432.c b/drivers/media/video/tda7432.c index 7cb1fb3e66f9..bc6b6c0cea6d 100644 --- a/drivers/media/video/tda7432.c +++ b/drivers/media/video/tda7432.c | |||
@@ -328,7 +328,7 @@ static int tda7432_probe(struct i2c_adapter *adap) | |||
328 | if (adap->class & I2C_CLASS_TV_ANALOG) | 328 | if (adap->class & I2C_CLASS_TV_ANALOG) |
329 | return i2c_probe(adap, &addr_data, tda7432_attach); | 329 | return i2c_probe(adap, &addr_data, tda7432_attach); |
330 | #else | 330 | #else |
331 | if (adap->id == (I2C_ALGO_BIT | I2C_HW_B_BT848)) | 331 | if (adap->id == I2C_HW_B_BT848) |
332 | return i2c_probe(adap, &addr_data, tda7432_attach); | 332 | return i2c_probe(adap, &addr_data, tda7432_attach); |
333 | #endif | 333 | #endif |
334 | return 0; | 334 | return 0; |
diff --git a/drivers/media/video/tda9875.c b/drivers/media/video/tda9875.c index 566e1a5ca135..3eaf2e1211e5 100644 --- a/drivers/media/video/tda9875.c +++ b/drivers/media/video/tda9875.c | |||
@@ -262,7 +262,7 @@ static int tda9875_probe(struct i2c_adapter *adap) | |||
262 | if (adap->class & I2C_CLASS_TV_ANALOG) | 262 | if (adap->class & I2C_CLASS_TV_ANALOG) |
263 | return i2c_probe(adap, &addr_data, tda9875_attach); | 263 | return i2c_probe(adap, &addr_data, tda9875_attach); |
264 | #else | 264 | #else |
265 | if (adap->id == (I2C_ALGO_BIT | I2C_HW_B_BT848)) | 265 | if (adap->id == I2C_HW_B_BT848) |
266 | return i2c_probe(adap, &addr_data, tda9875_attach); | 266 | return i2c_probe(adap, &addr_data, tda9875_attach); |
267 | #endif | 267 | #endif |
268 | return 0; | 268 | return 0; |
diff --git a/drivers/media/video/tda9887.c b/drivers/media/video/tda9887.c index a28a395d6dfe..f1b1bb5acf70 100644 --- a/drivers/media/video/tda9887.c +++ b/drivers/media/video/tda9887.c | |||
@@ -618,8 +618,8 @@ static int tda9887_probe(struct i2c_adapter *adap) | |||
618 | return i2c_probe(adap, &addr_data, tda9887_attach); | 618 | return i2c_probe(adap, &addr_data, tda9887_attach); |
619 | #else | 619 | #else |
620 | switch (adap->id) { | 620 | switch (adap->id) { |
621 | case I2C_ALGO_BIT | I2C_HW_B_BT848: | 621 | case I2C_HW_B_BT848: |
622 | case I2C_ALGO_BIT | I2C_HW_B_RIVA: | 622 | case I2C_HW_B_RIVA: |
623 | case I2C_ALGO_SAA7134: | 623 | case I2C_ALGO_SAA7134: |
624 | return i2c_probe(adap, &addr_data, tda9887_attach); | 624 | return i2c_probe(adap, &addr_data, tda9887_attach); |
625 | break; | 625 | break; |
diff --git a/drivers/media/video/tuner-3036.c b/drivers/media/video/tuner-3036.c index 103def1abe3c..79203595b9c1 100644 --- a/drivers/media/video/tuner-3036.c +++ b/drivers/media/video/tuner-3036.c | |||
@@ -165,7 +165,7 @@ static int | |||
165 | tuner_probe(struct i2c_adapter *adap) | 165 | tuner_probe(struct i2c_adapter *adap) |
166 | { | 166 | { |
167 | this_adap = 0; | 167 | this_adap = 0; |
168 | if (adap->id == (I2C_ALGO_BIT | I2C_HW_B_LP)) | 168 | if (adap->id == I2C_HW_B_LP) |
169 | return i2c_probe(adap, &addr_data, tuner_attach); | 169 | return i2c_probe(adap, &addr_data, tuner_attach); |
170 | return 0; | 170 | return 0; |
171 | } | 171 | } |
diff --git a/drivers/media/video/tvaudio.c b/drivers/media/video/tvaudio.c index f42a1efa8fcf..9420b5f52915 100644 --- a/drivers/media/video/tvaudio.c +++ b/drivers/media/video/tvaudio.c | |||
@@ -1098,7 +1098,7 @@ static int tda8425_initialize(struct CHIPSTATE *chip) | |||
1098 | /* extern */ TDA8425_S1_CH1, /* intern */ TDA8425_S1_OFF, | 1098 | /* extern */ TDA8425_S1_CH1, /* intern */ TDA8425_S1_OFF, |
1099 | /* off */ TDA8425_S1_OFF, /* on */ TDA8425_S1_CH2}; | 1099 | /* off */ TDA8425_S1_OFF, /* on */ TDA8425_S1_CH2}; |
1100 | 1100 | ||
1101 | if (chip->c.adapter->id == (I2C_ALGO_BIT | I2C_HW_B_RIVA)) { | 1101 | if (chip->c.adapter->id == I2C_HW_B_RIVA) { |
1102 | memcpy (desc->inputmap, inputmap, sizeof (inputmap)); | 1102 | memcpy (desc->inputmap, inputmap, sizeof (inputmap)); |
1103 | } | 1103 | } |
1104 | return 0; | 1104 | return 0; |
@@ -1555,8 +1555,8 @@ static int chip_probe(struct i2c_adapter *adap) | |||
1555 | return i2c_probe(adap, &addr_data, chip_attach); | 1555 | return i2c_probe(adap, &addr_data, chip_attach); |
1556 | #else | 1556 | #else |
1557 | switch (adap->id) { | 1557 | switch (adap->id) { |
1558 | case I2C_ALGO_BIT | I2C_HW_B_BT848: | 1558 | case I2C_HW_B_BT848: |
1559 | case I2C_ALGO_BIT | I2C_HW_B_RIVA: | 1559 | case I2C_HW_B_RIVA: |
1560 | case I2C_ALGO_SAA7134: | 1560 | case I2C_ALGO_SAA7134: |
1561 | return i2c_probe(adap, &addr_data, chip_attach); | 1561 | return i2c_probe(adap, &addr_data, chip_attach); |
1562 | } | 1562 | } |
diff --git a/drivers/media/video/tveeprom.c b/drivers/media/video/tveeprom.c index 127ec38ebd60..3c3356a01cc6 100644 --- a/drivers/media/video/tveeprom.c +++ b/drivers/media/video/tveeprom.c | |||
@@ -534,7 +534,7 @@ static int | |||
534 | tveeprom_attach_adapter (struct i2c_adapter *adapter) | 534 | tveeprom_attach_adapter (struct i2c_adapter *adapter) |
535 | { | 535 | { |
536 | dprintk(1,"%s: id 0x%x\n",__FUNCTION__,adapter->id); | 536 | dprintk(1,"%s: id 0x%x\n",__FUNCTION__,adapter->id); |
537 | if (adapter->id != (I2C_ALGO_BIT | I2C_HW_B_BT848)) | 537 | if (adapter->id != I2C_HW_B_BT848) |
538 | return 0; | 538 | return 0; |
539 | return i2c_probe(adapter, &addr_data, tveeprom_detect_client); | 539 | return i2c_probe(adapter, &addr_data, tveeprom_detect_client); |
540 | } | 540 | } |
diff --git a/drivers/media/video/tvmixer.c b/drivers/media/video/tvmixer.c index 51b99cdbf29e..f0635b19de30 100644 --- a/drivers/media/video/tvmixer.c +++ b/drivers/media/video/tvmixer.c | |||
@@ -276,9 +276,9 @@ static int tvmixer_clients(struct i2c_client *client) | |||
276 | #else | 276 | #else |
277 | /* TV card ??? */ | 277 | /* TV card ??? */ |
278 | switch (client->adapter->id) { | 278 | switch (client->adapter->id) { |
279 | case I2C_ALGO_BIT | I2C_HW_SMBUS_VOODOO3: | 279 | case I2C_HW_SMBUS_VOODOO3: |
280 | case I2C_ALGO_BIT | I2C_HW_B_BT848: | 280 | case I2C_HW_B_BT848: |
281 | case I2C_ALGO_BIT | I2C_HW_B_RIVA: | 281 | case I2C_HW_B_RIVA: |
282 | /* ok, have a look ... */ | 282 | /* ok, have a look ... */ |
283 | break; | 283 | break; |
284 | default: | 284 | default: |