|
@@ -478,8 +478,7 @@ static int pvr2_i2c_xfer(struct i2c_adapter *i2c_adap,
|
|
|
unsigned int idx,offs,cnt;
|
|
|
for (idx = 0; idx < num; idx++) {
|
|
|
cnt = msgs[idx].len;
|
|
|
- printk(KERN_INFO
|
|
|
- "pvrusb2 i2c xfer %u/%u: addr=0x%x len=%d %s",
|
|
|
+ pr_info("pvrusb2 i2c xfer %u/%u: addr=0x%x len=%d %s",
|
|
|
idx+1,num,
|
|
|
msgs[idx].addr,
|
|
|
cnt,
|
|
@@ -487,22 +486,21 @@ static int pvr2_i2c_xfer(struct i2c_adapter *i2c_adap,
|
|
|
"read" : "write"));
|
|
|
if ((ret > 0) || !(msgs[idx].flags & I2C_M_RD)) {
|
|
|
if (cnt > 8) cnt = 8;
|
|
|
- printk(KERN_CONT " [");
|
|
|
+ pr_cont(" [");
|
|
|
for (offs = 0; offs < cnt; offs++) {
|
|
|
- if (offs) printk(KERN_CONT " ");
|
|
|
- printk(KERN_CONT "%02x",msgs[idx].buf[offs]);
|
|
|
+ if (offs) pr_cont(" ");
|
|
|
+ pr_cont("%02x", msgs[idx].buf[offs]);
|
|
|
}
|
|
|
- if (offs < cnt) printk(KERN_CONT " ...");
|
|
|
- printk(KERN_CONT "]");
|
|
|
+ if (offs < cnt) pr_cont(" ...");
|
|
|
+ pr_cont("]");
|
|
|
}
|
|
|
if (idx+1 == num) {
|
|
|
- printk(KERN_CONT " result=%d",ret);
|
|
|
+ pr_cont(" result=%d", ret);
|
|
|
}
|
|
|
- printk(KERN_CONT "\n");
|
|
|
+ pr_cont("\n");
|
|
|
}
|
|
|
if (!num) {
|
|
|
- printk(KERN_INFO
|
|
|
- "pvrusb2 i2c xfer null transfer result=%d\n",
|
|
|
+ pr_info("pvrusb2 i2c xfer null transfer result=%d\n",
|
|
|
ret);
|
|
|
}
|
|
|
}
|
|
@@ -542,14 +540,14 @@ static int do_i2c_probe(struct pvr2_hdw *hdw, int addr)
|
|
|
static void do_i2c_scan(struct pvr2_hdw *hdw)
|
|
|
{
|
|
|
int i;
|
|
|
- printk(KERN_INFO "%s: i2c scan beginning\n", hdw->name);
|
|
|
+ pr_info("%s: i2c scan beginning\n", hdw->name);
|
|
|
for (i = 0; i < 128; i++) {
|
|
|
if (do_i2c_probe(hdw, i)) {
|
|
|
- printk(KERN_INFO "%s: i2c scan: found device @ 0x%x\n",
|
|
|
+ pr_info("%s: i2c scan: found device @ 0x%x\n",
|
|
|
hdw->name, i);
|
|
|
}
|
|
|
}
|
|
|
- printk(KERN_INFO "%s: i2c scan done.\n", hdw->name);
|
|
|
+ pr_info("%s: i2c scan done.\n", hdw->name);
|
|
|
}
|
|
|
|
|
|
static void pvr2_i2c_register_ir(struct pvr2_hdw *hdw)
|
|
@@ -612,7 +610,7 @@ void pvr2_i2c_core_init(struct pvr2_hdw *hdw)
|
|
|
|
|
|
/* However, deal with various special cases for 24xxx hardware. */
|
|
|
if (ir_mode[hdw->unit_number] == 0) {
|
|
|
- printk(KERN_INFO "%s: IR disabled\n",hdw->name);
|
|
|
+ pr_info("%s: IR disabled\n", hdw->name);
|
|
|
hdw->i2c_func[0x18] = i2c_black_hole;
|
|
|
} else if (ir_mode[hdw->unit_number] == 1) {
|
|
|
if (hdw->ir_scheme_active == PVR2_IR_SCHEME_24XXX) {
|