mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-29 22:14:41 +08:00
[media] stb0899_drv: get rid of continuation lines
This driver has printk continuation lines for debugging purposes.
Since commit 563873318d
("Merge branch 'printk-cleanups'")',
this won't work as expected anymore.
So, use %*ph and get rid of it.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
9e3d073009
commit
a8cd47d360
@ -485,15 +485,8 @@ int stb0899_read_regs(struct stb0899_state *state, unsigned int reg, u8 *buf, u3
|
|||||||
(((reg & 0xff00) == 0xf200) || ((reg & 0xff00) == 0xf600)))
|
(((reg & 0xff00) == 0xf200) || ((reg & 0xff00) == 0xf600)))
|
||||||
_stb0899_read_reg(state, (reg | 0x00ff));
|
_stb0899_read_reg(state, (reg | 0x00ff));
|
||||||
|
|
||||||
if (unlikely(*state->verbose >= FE_DEBUGREG)) {
|
dprintk(state->verbose, FE_DEBUGREG, 1,
|
||||||
int i;
|
"%s [0x%04x]: %*ph", __func__, reg, count, buf);
|
||||||
|
|
||||||
printk(KERN_DEBUG "%s [0x%04x]:", __func__, reg);
|
|
||||||
for (i = 0; i < count; i++) {
|
|
||||||
printk(" %02x", buf[i]);
|
|
||||||
}
|
|
||||||
printk("\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
err:
|
err:
|
||||||
@ -522,14 +515,8 @@ int stb0899_write_regs(struct stb0899_state *state, unsigned int reg, u8 *data,
|
|||||||
buf[1] = reg & 0xff;
|
buf[1] = reg & 0xff;
|
||||||
memcpy(&buf[2], data, count);
|
memcpy(&buf[2], data, count);
|
||||||
|
|
||||||
if (unlikely(*state->verbose >= FE_DEBUGREG)) {
|
dprintk(state->verbose, FE_DEBUGREG, 1,
|
||||||
int i;
|
"%s [0x%04x]: %*ph", __func__, reg, count, data);
|
||||||
|
|
||||||
printk(KERN_DEBUG "%s [0x%04x]:", __func__, reg);
|
|
||||||
for (i = 0; i < count; i++)
|
|
||||||
printk(" %02x", data[i]);
|
|
||||||
printk("\n");
|
|
||||||
}
|
|
||||||
ret = i2c_transfer(state->i2c, &i2c_msg, 1);
|
ret = i2c_transfer(state->i2c, &i2c_msg, 1);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user