diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-03-22 23:11:18 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-03-24 14:26:55 -0500 |
commit | ae62e3d4a8194680023b47ab778bf1dcea8d6b42 (patch) | |
tree | ae95d5dcb341fd826911c307e27b52b23ef92acc /drivers/media/dvb/dvb-usb/cxusb.h | |
parent | 4d6e772d989c11af7d7e41095f976cff5eeb43f3 (diff) |
V4L/DVB (3575): Cxusb: fix i2c debug messages for bluebird devices
Only the Medion boxes return 0x08 after an i2c read/write.
The bluebird devices do not return anything at all.
This patch conditionalizes the test for the 0x08 return code
to produce a warning message when using the Medion box, only.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/cxusb.h')
-rw-r--r-- | drivers/media/dvb/dvb-usb/cxusb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-usb/cxusb.h b/drivers/media/dvb/dvb-usb/cxusb.h index 087c99427853..c8ef77554b00 100644 --- a/drivers/media/dvb/dvb-usb/cxusb.h +++ b/drivers/media/dvb/dvb-usb/cxusb.h | |||
@@ -6,6 +6,8 @@ | |||
6 | 6 | ||
7 | extern int dvb_usb_cxusb_debug; | 7 | extern int dvb_usb_cxusb_debug; |
8 | #define deb_info(args...) dprintk(dvb_usb_cxusb_debug,0x01,args) | 8 | #define deb_info(args...) dprintk(dvb_usb_cxusb_debug,0x01,args) |
9 | #define deb_i2c(args...) if (d->udev->descriptor.idVendor == USB_VID_MEDION) \ | ||
10 | dprintk(dvb_usb_cxusb_debug,0x01,args) | ||
9 | 11 | ||
10 | /* usb commands - some of it are guesses, don't have a reference yet */ | 12 | /* usb commands - some of it are guesses, don't have a reference yet */ |
11 | #define CMD_I2C_WRITE 0x08 | 13 | #define CMD_I2C_WRITE 0x08 |