diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-24 10:54:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-24 10:54:16 -0400 |
commit | 9f6ac7850a9c6363f4117fd2248e232a2d534627 (patch) | |
tree | 7eac24b3b406f0bc9cb06eb8fe7cd19254275cba /drivers/media | |
parent | db16826367fefcb0ddb93d76b66adc52eb4e6339 (diff) | |
parent | 3f48258e50ef44d92a0e5c69c0cc5e663162d246 (diff) |
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6
* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6:
V4L/DVB (13039): dib0700: not building CONFIG_DVB_TUNER_DIB0070 breaks compilation
V4L/DVB (13038): dvbdev: Remove an anoying/uneeded warning
V4L/DVB (13037): go7007: Revert compatibility code added at the wrong place
media: video: Fix build in saa7164
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb/dvb-core/dvbdev.h | 5 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/Kconfig | 2 | ||||
-rw-r--r-- | drivers/media/video/saa7164/saa7164-api.c | 8 | ||||
-rw-r--r-- | drivers/media/video/saa7164/saa7164-cmd.c | 2 | ||||
-rw-r--r-- | drivers/media/video/saa7164/saa7164-core.c | 6 | ||||
-rw-r--r-- | drivers/media/video/saa7164/saa7164.h | 4 |
6 files changed, 13 insertions, 14 deletions
diff --git a/drivers/media/dvb/dvb-core/dvbdev.h b/drivers/media/dvb/dvb-core/dvbdev.h index 895e2efca8a9..01fc70484743 100644 --- a/drivers/media/dvb/dvb-core/dvbdev.h +++ b/drivers/media/dvb/dvb-core/dvbdev.h | |||
@@ -31,10 +31,9 @@ | |||
31 | #define DVB_MAJOR 212 | 31 | #define DVB_MAJOR 212 |
32 | 32 | ||
33 | #if defined(CONFIG_DVB_MAX_ADAPTERS) && CONFIG_DVB_MAX_ADAPTERS > 0 | 33 | #if defined(CONFIG_DVB_MAX_ADAPTERS) && CONFIG_DVB_MAX_ADAPTERS > 0 |
34 | #define DVB_MAX_ADAPTERS CONFIG_DVB_MAX_ADAPTERS | 34 | #define DVB_MAX_ADAPTERS CONFIG_DVB_MAX_ADAPTERS |
35 | #else | 35 | #else |
36 | #warning invalid CONFIG_DVB_MAX_ADAPTERS value | 36 | #define DVB_MAX_ADAPTERS 8 |
37 | #define DVB_MAX_ADAPTERS 8 | ||
38 | #endif | 37 | #endif |
39 | 38 | ||
40 | #define DVB_UNSET (-1) | 39 | #define DVB_UNSET (-1) |
diff --git a/drivers/media/dvb/dvb-usb/Kconfig b/drivers/media/dvb/dvb-usb/Kconfig index 0e4b97fba384..9744b0692417 100644 --- a/drivers/media/dvb/dvb-usb/Kconfig +++ b/drivers/media/dvb/dvb-usb/Kconfig | |||
@@ -75,7 +75,7 @@ config DVB_USB_DIB0700 | |||
75 | select DVB_DIB3000MC if !DVB_FE_CUSTOMISE | 75 | select DVB_DIB3000MC if !DVB_FE_CUSTOMISE |
76 | select DVB_S5H1411 if !DVB_FE_CUSTOMISE | 76 | select DVB_S5H1411 if !DVB_FE_CUSTOMISE |
77 | select DVB_LGDT3305 if !DVB_FE_CUSTOMISE | 77 | select DVB_LGDT3305 if !DVB_FE_CUSTOMISE |
78 | select DVB_TUNER_DIB0070 if !DVB_FE_CUSTOMISE | 78 | select DVB_TUNER_DIB0070 |
79 | select MEDIA_TUNER_MT2060 if !MEDIA_TUNER_CUSTOMISE | 79 | select MEDIA_TUNER_MT2060 if !MEDIA_TUNER_CUSTOMISE |
80 | select MEDIA_TUNER_MT2266 if !MEDIA_TUNER_CUSTOMISE | 80 | select MEDIA_TUNER_MT2266 if !MEDIA_TUNER_CUSTOMISE |
81 | select MEDIA_TUNER_XC2028 if !MEDIA_TUNER_CUSTOMISE | 81 | select MEDIA_TUNER_XC2028 if !MEDIA_TUNER_CUSTOMISE |
diff --git a/drivers/media/video/saa7164/saa7164-api.c b/drivers/media/video/saa7164/saa7164-api.c index bb6df1b276be..6f094a96ac81 100644 --- a/drivers/media/video/saa7164/saa7164-api.c +++ b/drivers/media/video/saa7164/saa7164-api.c | |||
@@ -415,7 +415,7 @@ int saa7164_api_enum_subdevs(struct saa7164_dev *dev) | |||
415 | goto out; | 415 | goto out; |
416 | } | 416 | } |
417 | 417 | ||
418 | if (debug & DBGLVL_API) | 418 | if (saa_debug & DBGLVL_API) |
419 | saa7164_dumphex16(dev, buf, (buflen/16)*16); | 419 | saa7164_dumphex16(dev, buf, (buflen/16)*16); |
420 | 420 | ||
421 | saa7164_api_dump_subdevs(dev, buf, buflen); | 421 | saa7164_api_dump_subdevs(dev, buf, buflen); |
@@ -480,7 +480,7 @@ int saa7164_api_i2c_read(struct saa7164_i2c *bus, u8 addr, u32 reglen, u8 *reg, | |||
480 | 480 | ||
481 | dprintk(DBGLVL_API, "%s() len = %d bytes\n", __func__, len); | 481 | dprintk(DBGLVL_API, "%s() len = %d bytes\n", __func__, len); |
482 | 482 | ||
483 | if (debug & DBGLVL_I2C) | 483 | if (saa_debug & DBGLVL_I2C) |
484 | saa7164_dumphex16(dev, buf, 2 * 16); | 484 | saa7164_dumphex16(dev, buf, 2 * 16); |
485 | 485 | ||
486 | ret = saa7164_cmd_send(bus->dev, unitid, GET_CUR, | 486 | ret = saa7164_cmd_send(bus->dev, unitid, GET_CUR, |
@@ -488,7 +488,7 @@ int saa7164_api_i2c_read(struct saa7164_i2c *bus, u8 addr, u32 reglen, u8 *reg, | |||
488 | if (ret != SAA_OK) | 488 | if (ret != SAA_OK) |
489 | printk(KERN_ERR "%s() error, ret(2) = 0x%x\n", __func__, ret); | 489 | printk(KERN_ERR "%s() error, ret(2) = 0x%x\n", __func__, ret); |
490 | else { | 490 | else { |
491 | if (debug & DBGLVL_I2C) | 491 | if (saa_debug & DBGLVL_I2C) |
492 | saa7164_dumphex16(dev, buf, sizeof(buf)); | 492 | saa7164_dumphex16(dev, buf, sizeof(buf)); |
493 | memcpy(data, (buf + 2 * sizeof(u32) + reglen), datalen); | 493 | memcpy(data, (buf + 2 * sizeof(u32) + reglen), datalen); |
494 | } | 494 | } |
@@ -548,7 +548,7 @@ int saa7164_api_i2c_write(struct saa7164_i2c *bus, u8 addr, u32 datalen, | |||
548 | *((u32 *)(buf + 1 * sizeof(u32))) = datalen - reglen; | 548 | *((u32 *)(buf + 1 * sizeof(u32))) = datalen - reglen; |
549 | memcpy((buf + 2 * sizeof(u32)), data, datalen); | 549 | memcpy((buf + 2 * sizeof(u32)), data, datalen); |
550 | 550 | ||
551 | if (debug & DBGLVL_I2C) | 551 | if (saa_debug & DBGLVL_I2C) |
552 | saa7164_dumphex16(dev, buf, sizeof(buf)); | 552 | saa7164_dumphex16(dev, buf, sizeof(buf)); |
553 | 553 | ||
554 | ret = saa7164_cmd_send(bus->dev, unitid, SET_CUR, | 554 | ret = saa7164_cmd_send(bus->dev, unitid, SET_CUR, |
diff --git a/drivers/media/video/saa7164/saa7164-cmd.c b/drivers/media/video/saa7164/saa7164-cmd.c index e097f1a0969a..c45966edc0cf 100644 --- a/drivers/media/video/saa7164/saa7164-cmd.c +++ b/drivers/media/video/saa7164/saa7164-cmd.c | |||
@@ -250,7 +250,7 @@ int saa7164_cmd_wait(struct saa7164_dev *dev, u8 seqno) | |||
250 | unsigned long stamp; | 250 | unsigned long stamp; |
251 | int r; | 251 | int r; |
252 | 252 | ||
253 | if (debug >= 4) | 253 | if (saa_debug >= 4) |
254 | saa7164_bus_dump(dev); | 254 | saa7164_bus_dump(dev); |
255 | 255 | ||
256 | dprintk(DBGLVL_CMD, "%s(seqno=%d)\n", __func__, seqno); | 256 | dprintk(DBGLVL_CMD, "%s(seqno=%d)\n", __func__, seqno); |
diff --git a/drivers/media/video/saa7164/saa7164-core.c b/drivers/media/video/saa7164/saa7164-core.c index f0dbead188c8..709affc31042 100644 --- a/drivers/media/video/saa7164/saa7164-core.c +++ b/drivers/media/video/saa7164/saa7164-core.c | |||
@@ -45,8 +45,8 @@ MODULE_LICENSE("GPL"); | |||
45 | 32 bus | 45 | 32 bus |
46 | */ | 46 | */ |
47 | 47 | ||
48 | unsigned int debug; | 48 | unsigned int saa_debug; |
49 | module_param(debug, int, 0644); | 49 | module_param_named(debug, saa_debug, int, 0644); |
50 | MODULE_PARM_DESC(debug, "enable debug messages"); | 50 | MODULE_PARM_DESC(debug, "enable debug messages"); |
51 | 51 | ||
52 | unsigned int waitsecs = 10; | 52 | unsigned int waitsecs = 10; |
@@ -653,7 +653,7 @@ static int __devinit saa7164_initdev(struct pci_dev *pci_dev, | |||
653 | printk(KERN_ERR "%s() Unsupported board detected, " | 653 | printk(KERN_ERR "%s() Unsupported board detected, " |
654 | "registering without firmware\n", __func__); | 654 | "registering without firmware\n", __func__); |
655 | 655 | ||
656 | dprintk(1, "%s() parameter debug = %d\n", __func__, debug); | 656 | dprintk(1, "%s() parameter debug = %d\n", __func__, saa_debug); |
657 | dprintk(1, "%s() parameter waitsecs = %d\n", __func__, waitsecs); | 657 | dprintk(1, "%s() parameter waitsecs = %d\n", __func__, waitsecs); |
658 | 658 | ||
659 | fail_fw: | 659 | fail_fw: |
diff --git a/drivers/media/video/saa7164/saa7164.h b/drivers/media/video/saa7164/saa7164.h index 6753008a9c9b..42660b546f0e 100644 --- a/drivers/media/video/saa7164/saa7164.h +++ b/drivers/media/video/saa7164/saa7164.h | |||
@@ -375,9 +375,9 @@ extern int saa7164_buffer_dealloc(struct saa7164_tsport *port, | |||
375 | 375 | ||
376 | /* ----------------------------------------------------------- */ | 376 | /* ----------------------------------------------------------- */ |
377 | 377 | ||
378 | extern unsigned int debug; | 378 | extern unsigned int saa_debug; |
379 | #define dprintk(level, fmt, arg...)\ | 379 | #define dprintk(level, fmt, arg...)\ |
380 | do { if (debug & level)\ | 380 | do { if (saa_debug & level)\ |
381 | printk(KERN_DEBUG "%s: " fmt, dev->name, ## arg);\ | 381 | printk(KERN_DEBUG "%s: " fmt, dev->name, ## arg);\ |
382 | } while (0) | 382 | } while (0) |
383 | 383 | ||