mirror of
https://github.com/S3NEO/android_kernel_samsung_msm8226.git
synced 2024-11-07 03:47:13 +00:00
[media] pac207: Use current logging styles
Add pr_fmt. Convert usb style logging macros to pr_<level>. Coalesce formats. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
70a4299547
commit
be612514c0
1 changed files with 8 additions and 6 deletions
|
@ -23,6 +23,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||||
|
|
||||||
#define MODULE_NAME "pac207"
|
#define MODULE_NAME "pac207"
|
||||||
|
|
||||||
#include <linux/input.h>
|
#include <linux/input.h>
|
||||||
|
@ -178,8 +180,8 @@ static int pac207_write_regs(struct gspca_dev *gspca_dev, u16 index,
|
||||||
0x00, index,
|
0x00, index,
|
||||||
gspca_dev->usb_buf, length, PAC207_CTRL_TIMEOUT);
|
gspca_dev->usb_buf, length, PAC207_CTRL_TIMEOUT);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
err("Failed to write registers to index 0x%04X, error %d)",
|
pr_err("Failed to write registers to index 0x%04X, error %d\n",
|
||||||
index, err);
|
index, err);
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
@ -194,8 +196,8 @@ static int pac207_write_reg(struct gspca_dev *gspca_dev, u16 index, u16 value)
|
||||||
USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_INTERFACE,
|
USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_INTERFACE,
|
||||||
value, index, NULL, 0, PAC207_CTRL_TIMEOUT);
|
value, index, NULL, 0, PAC207_CTRL_TIMEOUT);
|
||||||
if (err)
|
if (err)
|
||||||
err("Failed to write a register (index 0x%04X,"
|
pr_err("Failed to write a register (index 0x%04X, value 0x%02X, error %d)\n",
|
||||||
" value 0x%02X, error %d)", index, value, err);
|
index, value, err);
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
@ -210,8 +212,8 @@ static int pac207_read_reg(struct gspca_dev *gspca_dev, u16 index)
|
||||||
0x00, index,
|
0x00, index,
|
||||||
gspca_dev->usb_buf, 1, PAC207_CTRL_TIMEOUT);
|
gspca_dev->usb_buf, 1, PAC207_CTRL_TIMEOUT);
|
||||||
if (res < 0) {
|
if (res < 0) {
|
||||||
err("Failed to read a register (index 0x%04X, error %d)",
|
pr_err("Failed to read a register (index 0x%04X, error %d)\n",
|
||||||
index, res);
|
index, res);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue