aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/w996Xcf.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-08-21 18:56:57 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-09-04 10:06:05 -0400
commit133a9fe949862d9ed8411fb423739f4cee08232d (patch)
tree4a465a6823412503b73ef0462e3ffad3415fab39 /drivers/media/video/gspca/w996Xcf.c
parent42f4e774a30d0e9894741b62af4174c73ecc53da (diff)
[media] gspca: Use current logging styles
Add pr_fmt. Convert usb style logging macros to pr_<level>. Remove now unused old usb style logging macros. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/w996Xcf.c')
-rw-r--r--drivers/media/video/gspca/w996Xcf.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/media/video/gspca/w996Xcf.c b/drivers/media/video/gspca/w996Xcf.c
index 4a9e622e5e1b..27d2cef0692a 100644
--- a/drivers/media/video/gspca/w996Xcf.c
+++ b/drivers/media/video/gspca/w996Xcf.c
@@ -31,6 +31,8 @@
31 the sensor drivers to v4l2 sub drivers, and properly split of this 31 the sensor drivers to v4l2 sub drivers, and properly split of this
32 driver from ov519.c */ 32 driver from ov519.c */
33 33
34#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
35
34#define W9968CF_I2C_BUS_DELAY 4 /* delay in us for I2C bit r/w operations */ 36#define W9968CF_I2C_BUS_DELAY 4 /* delay in us for I2C bit r/w operations */
35 37
36#define Y_QUANTABLE (&sd->jpeg_hdr[JPEG_QT0_OFFSET]) 38#define Y_QUANTABLE (&sd->jpeg_hdr[JPEG_QT0_OFFSET])
@@ -81,7 +83,7 @@ static void w9968cf_write_fsb(struct sd *sd, u16* data)
81 USB_TYPE_VENDOR | USB_DIR_OUT | USB_RECIP_DEVICE, 83 USB_TYPE_VENDOR | USB_DIR_OUT | USB_RECIP_DEVICE,
82 value, 0x06, sd->gspca_dev.usb_buf, 6, 500); 84 value, 0x06, sd->gspca_dev.usb_buf, 6, 500);
83 if (ret < 0) { 85 if (ret < 0) {
84 err("Write FSB registers failed (%d)", ret); 86 pr_err("Write FSB registers failed (%d)\n", ret);
85 sd->gspca_dev.usb_err = ret; 87 sd->gspca_dev.usb_err = ret;
86 } 88 }
87} 89}
@@ -108,7 +110,7 @@ static void w9968cf_write_sb(struct sd *sd, u16 value)
108 udelay(W9968CF_I2C_BUS_DELAY); 110 udelay(W9968CF_I2C_BUS_DELAY);
109 111
110 if (ret < 0) { 112 if (ret < 0) {
111 err("Write SB reg [01] %04x failed", value); 113 pr_err("Write SB reg [01] %04x failed\n", value);
112 sd->gspca_dev.usb_err = ret; 114 sd->gspca_dev.usb_err = ret;
113 } 115 }
114} 116}
@@ -135,7 +137,7 @@ static int w9968cf_read_sb(struct sd *sd)
135 ret = sd->gspca_dev.usb_buf[0] | 137 ret = sd->gspca_dev.usb_buf[0] |
136 (sd->gspca_dev.usb_buf[1] << 8); 138 (sd->gspca_dev.usb_buf[1] << 8);
137 } else { 139 } else {
138 err("Read SB reg [01] failed"); 140 pr_err("Read SB reg [01] failed\n");
139 sd->gspca_dev.usb_err = ret; 141 sd->gspca_dev.usb_err = ret;
140 } 142 }
141 143