diff options
-rw-r--r-- | drivers/staging/tm6000/tm6000-core.c | 20 | ||||
-rw-r--r-- | drivers/staging/tm6000/tm6000-dvb.c | 4 | ||||
-rw-r--r-- | drivers/staging/tm6000/tm6000-i2c.c | 16 | ||||
-rw-r--r-- | drivers/staging/tm6000/tm6000-regs.h | 2 | ||||
-rw-r--r-- | drivers/staging/tm6000/tm6000-usb-isoc.h | 2 | ||||
-rw-r--r-- | drivers/staging/tm6000/tm6000.h | 4 |
6 files changed, 24 insertions, 24 deletions
diff --git a/drivers/staging/tm6000/tm6000-core.c b/drivers/staging/tm6000/tm6000-core.c index 6d0803c886be..9783616a0da2 100644 --- a/drivers/staging/tm6000/tm6000-core.c +++ b/drivers/staging/tm6000/tm6000-core.c | |||
@@ -52,18 +52,18 @@ int tm6000_read_write_usb(struct tm6000_core *dev, u8 req_type, u8 req, | |||
52 | } | 52 | } |
53 | 53 | ||
54 | if (tm6000_debug & V4L2_DEBUG_I2C) { | 54 | if (tm6000_debug & V4L2_DEBUG_I2C) { |
55 | printk("(dev %p, pipe %08x): ", dev->udev, pipe); | 55 | printk(KERN_DEBUG "(dev %p, pipe %08x): ", dev->udev, pipe); |
56 | 56 | ||
57 | printk("%s: %02x %02x %02x %02x %02x %02x %02x %02x ", | 57 | printk(KERN_CONT "%s: %02x %02x %02x %02x %02x %02x %02x %02x ", |
58 | (req_type & USB_DIR_IN) ? " IN" : "OUT", | 58 | (req_type & USB_DIR_IN) ? " IN" : "OUT", |
59 | req_type, req, value&0xff, value>>8, index&0xff, | 59 | req_type, req, value&0xff, value>>8, index&0xff, |
60 | index>>8, len&0xff, len>>8); | 60 | index>>8, len&0xff, len>>8); |
61 | 61 | ||
62 | if (!(req_type & USB_DIR_IN)) { | 62 | if (!(req_type & USB_DIR_IN)) { |
63 | printk(">>> "); | 63 | printk(KERN_CONT ">>> "); |
64 | for (i = 0; i < len; i++) | 64 | for (i = 0; i < len; i++) |
65 | printk(" %02x", buf[i]); | 65 | printk(KERN_CONT " %02x", buf[i]); |
66 | printk("\n"); | 66 | printk(KERN_CONT "\n"); |
67 | } | 67 | } |
68 | } | 68 | } |
69 | 69 | ||
@@ -76,14 +76,14 @@ int tm6000_read_write_usb(struct tm6000_core *dev, u8 req_type, u8 req, | |||
76 | if (tm6000_debug & V4L2_DEBUG_I2C) { | 76 | if (tm6000_debug & V4L2_DEBUG_I2C) { |
77 | if (ret < 0) { | 77 | if (ret < 0) { |
78 | if (req_type & USB_DIR_IN) | 78 | if (req_type & USB_DIR_IN) |
79 | printk("<<< (len=%d)\n", len); | 79 | printk(KERN_DEBUG "<<< (len=%d)\n", len); |
80 | 80 | ||
81 | printk("%s: Error #%d\n", __FUNCTION__, ret); | 81 | printk(KERN_CONT "%s: Error #%d\n", __func__, ret); |
82 | } else if (req_type & USB_DIR_IN) { | 82 | } else if (req_type & USB_DIR_IN) { |
83 | printk("<<< "); | 83 | printk(KERN_CONT "<<< "); |
84 | for (i = 0; i < len; i++) | 84 | for (i = 0; i < len; i++) |
85 | printk(" %02x", buf[i]); | 85 | printk(KERN_CONT " %02x", buf[i]); |
86 | printk("\n"); | 86 | printk(KERN_CONT "\n"); |
87 | } | 87 | } |
88 | } | 88 | } |
89 | 89 | ||
diff --git a/drivers/staging/tm6000/tm6000-dvb.c b/drivers/staging/tm6000/tm6000-dvb.c index 8f2a50bd3a48..5e6c129a4beb 100644 --- a/drivers/staging/tm6000/tm6000-dvb.c +++ b/drivers/staging/tm6000/tm6000-dvb.c | |||
@@ -330,7 +330,7 @@ static int register_dvb(struct tm6000_core *dev) | |||
330 | dvb->demux.write_to_decoder = NULL; | 330 | dvb->demux.write_to_decoder = NULL; |
331 | ret = dvb_dmx_init(&dvb->demux); | 331 | ret = dvb_dmx_init(&dvb->demux); |
332 | if (ret < 0) { | 332 | if (ret < 0) { |
333 | printk("tm6000: dvb_dmx_init failed (errno = %d)\n", ret); | 333 | printk(KERN_ERR "tm6000: dvb_dmx_init failed (errno = %d)\n", ret); |
334 | goto frontend_err; | 334 | goto frontend_err; |
335 | } | 335 | } |
336 | 336 | ||
@@ -340,7 +340,7 @@ static int register_dvb(struct tm6000_core *dev) | |||
340 | 340 | ||
341 | ret = dvb_dmxdev_init(&dvb->dmxdev, &dvb->adapter); | 341 | ret = dvb_dmxdev_init(&dvb->dmxdev, &dvb->adapter); |
342 | if (ret < 0) { | 342 | if (ret < 0) { |
343 | printk("tm6000: dvb_dmxdev_init failed (errno = %d)\n", ret); | 343 | printk(KERN_ERR "tm6000: dvb_dmxdev_init failed (errno = %d)\n", ret); |
344 | goto dvb_dmx_err; | 344 | goto dvb_dmx_err; |
345 | } | 345 | } |
346 | 346 | ||
diff --git a/drivers/staging/tm6000/tm6000-i2c.c b/drivers/staging/tm6000/tm6000-i2c.c index 76a8e3a49fc7..0290bbf00c3e 100644 --- a/drivers/staging/tm6000/tm6000-i2c.c +++ b/drivers/staging/tm6000/tm6000-i2c.c | |||
@@ -189,7 +189,7 @@ static int tm6000_i2c_xfer(struct i2c_adapter *i2c_adap, | |||
189 | /* 1 or 2 byte write followed by a read */ | 189 | /* 1 or 2 byte write followed by a read */ |
190 | if (i2c_debug >= 2) | 190 | if (i2c_debug >= 2) |
191 | for (byte = 0; byte < msgs[i].len; byte++) | 191 | for (byte = 0; byte < msgs[i].len; byte++) |
192 | printk(" %02x", msgs[i].buf[byte]); | 192 | printk(KERN_CONT " %02x", msgs[i].buf[byte]); |
193 | i2c_dprintk(2, "; joined to read %s len=%d:", | 193 | i2c_dprintk(2, "; joined to read %s len=%d:", |
194 | i == num - 2 ? "stop" : "nonstop", | 194 | i == num - 2 ? "stop" : "nonstop", |
195 | msgs[i + 1].len); | 195 | msgs[i + 1].len); |
@@ -211,17 +211,17 @@ static int tm6000_i2c_xfer(struct i2c_adapter *i2c_adap, | |||
211 | } | 211 | } |
212 | if (i2c_debug >= 2) | 212 | if (i2c_debug >= 2) |
213 | for (byte = 0; byte < msgs[i].len; byte++) | 213 | for (byte = 0; byte < msgs[i].len; byte++) |
214 | printk(" %02x", msgs[i].buf[byte]); | 214 | printk(KERN_CONT " %02x", msgs[i].buf[byte]); |
215 | } else { | 215 | } else { |
216 | /* write bytes */ | 216 | /* write bytes */ |
217 | if (i2c_debug >= 2) | 217 | if (i2c_debug >= 2) |
218 | for (byte = 0; byte < msgs[i].len; byte++) | 218 | for (byte = 0; byte < msgs[i].len; byte++) |
219 | printk(" %02x", msgs[i].buf[byte]); | 219 | printk(KERN_CONT " %02x", msgs[i].buf[byte]); |
220 | rc = tm6000_i2c_send_regs(dev, addr, msgs[i].buf[0], | 220 | rc = tm6000_i2c_send_regs(dev, addr, msgs[i].buf[0], |
221 | msgs[i].buf + 1, msgs[i].len - 1); | 221 | msgs[i].buf + 1, msgs[i].len - 1); |
222 | } | 222 | } |
223 | if (i2c_debug >= 2) | 223 | if (i2c_debug >= 2) |
224 | printk("\n"); | 224 | printk(KERN_CONT "\n"); |
225 | if (rc < 0) | 225 | if (rc < 0) |
226 | goto err; | 226 | goto err; |
227 | } | 227 | } |
@@ -259,7 +259,7 @@ static int tm6000_i2c_eeprom(struct tm6000_core *dev) | |||
259 | p++; | 259 | p++; |
260 | if (0 == (i % 16)) | 260 | if (0 == (i % 16)) |
261 | printk(KERN_INFO "%s: i2c eeprom %02x:", dev->name, i); | 261 | printk(KERN_INFO "%s: i2c eeprom %02x:", dev->name, i); |
262 | printk(" %02x", dev->eedata[i]); | 262 | printk(KERN_CONT " %02x", dev->eedata[i]); |
263 | if ((dev->eedata[i] >= ' ') && (dev->eedata[i] <= 'z')) | 263 | if ((dev->eedata[i] >= ' ') && (dev->eedata[i] <= 'z')) |
264 | bytes[i%16] = dev->eedata[i]; | 264 | bytes[i%16] = dev->eedata[i]; |
265 | else | 265 | else |
@@ -269,14 +269,14 @@ static int tm6000_i2c_eeprom(struct tm6000_core *dev) | |||
269 | 269 | ||
270 | if (0 == (i % 16)) { | 270 | if (0 == (i % 16)) { |
271 | bytes[16] = '\0'; | 271 | bytes[16] = '\0'; |
272 | printk(" %s\n", bytes); | 272 | printk(KERN_CONT " %s\n", bytes); |
273 | } | 273 | } |
274 | } | 274 | } |
275 | if (0 != (i%16)) { | 275 | if (0 != (i%16)) { |
276 | bytes[i%16] = '\0'; | 276 | bytes[i%16] = '\0'; |
277 | for (i %= 16; i < 16; i++) | 277 | for (i %= 16; i < 16; i++) |
278 | printk(" "); | 278 | printk(KERN_CONT " "); |
279 | printk(" %s\n", bytes); | 279 | printk(KERN_CONT " %s\n", bytes); |
280 | } | 280 | } |
281 | 281 | ||
282 | return 0; | 282 | return 0; |
diff --git a/drivers/staging/tm6000/tm6000-regs.h b/drivers/staging/tm6000/tm6000-regs.h index 6e4ef95999f5..7f491b6de933 100644 --- a/drivers/staging/tm6000/tm6000-regs.h +++ b/drivers/staging/tm6000/tm6000-regs.h | |||
@@ -90,7 +90,7 @@ | |||
90 | */ | 90 | */ |
91 | 91 | ||
92 | enum { | 92 | enum { |
93 | TM6000_URB_MSG_VIDEO=1, | 93 | TM6000_URB_MSG_VIDEO = 1, |
94 | TM6000_URB_MSG_AUDIO, | 94 | TM6000_URB_MSG_AUDIO, |
95 | TM6000_URB_MSG_VBI, | 95 | TM6000_URB_MSG_VBI, |
96 | TM6000_URB_MSG_PTS, | 96 | TM6000_URB_MSG_PTS, |
diff --git a/drivers/staging/tm6000/tm6000-usb-isoc.h b/drivers/staging/tm6000/tm6000-usb-isoc.h index 084c2a8904a3..99d15a55aa03 100644 --- a/drivers/staging/tm6000/tm6000-usb-isoc.h +++ b/drivers/staging/tm6000/tm6000-usb-isoc.h | |||
@@ -46,5 +46,5 @@ struct usb_isoc_ctl { | |||
46 | int tmp_buf_len; | 46 | int tmp_buf_len; |
47 | 47 | ||
48 | /* Stores already requested buffers */ | 48 | /* Stores already requested buffers */ |
49 | struct tm6000_buffer *buf; | 49 | struct tm6000_buffer *buf; |
50 | }; | 50 | }; |
diff --git a/drivers/staging/tm6000/tm6000.h b/drivers/staging/tm6000/tm6000.h index 5bdce84f8d60..2777e514eff2 100644 --- a/drivers/staging/tm6000/tm6000.h +++ b/drivers/staging/tm6000/tm6000.h | |||
@@ -384,7 +384,7 @@ extern int tm6000_debug; | |||
384 | #define dprintk(dev, level, fmt, arg...) do {\ | 384 | #define dprintk(dev, level, fmt, arg...) do {\ |
385 | if (tm6000_debug & level) \ | 385 | if (tm6000_debug & level) \ |
386 | printk(KERN_INFO "(%lu) %s %s :"fmt, jiffies, \ | 386 | printk(KERN_INFO "(%lu) %s %s :"fmt, jiffies, \ |
387 | dev->name, __FUNCTION__ , ##arg); } while (0) | 387 | dev->name, __func__ , ##arg); } while (0) |
388 | 388 | ||
389 | #define V4L2_DEBUG_REG 0x0004 | 389 | #define V4L2_DEBUG_REG 0x0004 |
390 | #define V4L2_DEBUG_I2C 0x0008 | 390 | #define V4L2_DEBUG_I2C 0x0008 |
@@ -395,4 +395,4 @@ extern int tm6000_debug; | |||
395 | 395 | ||
396 | #define tm6000_err(fmt, arg...) do {\ | 396 | #define tm6000_err(fmt, arg...) do {\ |
397 | printk(KERN_ERR "tm6000 %s :"fmt, \ | 397 | printk(KERN_ERR "tm6000 %s :"fmt, \ |
398 | __FUNCTION__ , ##arg); } while (0) | 398 | __func__ , ##arg); } while (0) |