aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/pac7302.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/gspca/pac7302.c')
-rw-r--r--drivers/media/video/gspca/pac7302.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/media/video/gspca/pac7302.c b/drivers/media/video/gspca/pac7302.c
index 5615d7bd8304..1c44f78ff9e2 100644
--- a/drivers/media/video/gspca/pac7302.c
+++ b/drivers/media/video/gspca/pac7302.c
@@ -61,6 +61,8 @@
61 3 | 0x21 | sethvflip() 61 3 | 0x21 | sethvflip()
62*/ 62*/
63 63
64#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
65
64#define MODULE_NAME "pac7302" 66#define MODULE_NAME "pac7302"
65 67
66#include <linux/input.h> 68#include <linux/input.h>
@@ -408,8 +410,8 @@ static void reg_w_buf(struct gspca_dev *gspca_dev,
408 index, gspca_dev->usb_buf, len, 410 index, gspca_dev->usb_buf, len,
409 500); 411 500);
410 if (ret < 0) { 412 if (ret < 0) {
411 err("reg_w_buf failed index 0x%02x, error %d", 413 pr_err("reg_w_buf failed index 0x%02x, error %d\n",
412 index, ret); 414 index, ret);
413 gspca_dev->usb_err = ret; 415 gspca_dev->usb_err = ret;
414 } 416 }
415} 417}
@@ -431,8 +433,8 @@ static void reg_w(struct gspca_dev *gspca_dev,
431 0, index, gspca_dev->usb_buf, 1, 433 0, index, gspca_dev->usb_buf, 1,
432 500); 434 500);
433 if (ret < 0) { 435 if (ret < 0) {
434 err("reg_w() failed index 0x%02x, value 0x%02x, error %d", 436 pr_err("reg_w() failed index 0x%02x, value 0x%02x, error %d\n",
435 index, value, ret); 437 index, value, ret);
436 gspca_dev->usb_err = ret; 438 gspca_dev->usb_err = ret;
437 } 439 }
438} 440}
@@ -466,9 +468,8 @@ static void reg_w_page(struct gspca_dev *gspca_dev,
466 0, index, gspca_dev->usb_buf, 1, 468 0, index, gspca_dev->usb_buf, 1,
467 500); 469 500);
468 if (ret < 0) { 470 if (ret < 0) {
469 err("reg_w_page() failed index 0x%02x, " 471 pr_err("reg_w_page() failed index 0x%02x, value 0x%02x, error %d\n",
470 "value 0x%02x, error %d", 472 index, page[index], ret);
471 index, page[index], ret);
472 gspca_dev->usb_err = ret; 473 gspca_dev->usb_err = ret;
473 break; 474 break;
474 } 475 }