Skip to content

Commit

Permalink
lt8618sxb: Modify the log printing level
Browse files Browse the repository at this point in the history
Summary:
    Modify the log printing level, less unnecessary kernel printing

Signed-off-by: yaqiang.li <[email protected]>
  • Loading branch information
yaqiang.li committed Apr 3, 2023
1 parent 081be5a commit a0a8932
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions drivers/misc/bt2hdmi-lt/hobot_lt8618sxb_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static int hobot_lt8618sxb_write_byte(struct i2c_client *client,
if (ret >= 0)
return 0;

pr_err("lt8618sxb i2c write error addr:0%x reg:0x%x ret %d !\n",
pr_err("lt8618sxb i2c write error addr:0x%x reg:0x%x ret %d !\n",
addr, reg, ret);

return ret;
Expand Down Expand Up @@ -602,7 +602,7 @@ int LT8618SXB_Read_EDID(hobot_lt8618_sync_t * sync)
if (hobot_read_lt8618sxb(0x40) & 0x02) {
//DDC No Ack or Abitration lost
if (hobot_read_lt8618sxb(0x40) & 0x50) {
printk("\r\nread edid failed: no ack");
pr_debug("\r\nread edid failed: no ack");
goto end;
} else {
//printk("LT8618SXB_Read_EDID 11 \r\n");
Expand Down Expand Up @@ -670,7 +670,7 @@ int LT8618SXB_Read_EDID(hobot_lt8618_sync_t * sync)
}
}
} else {
printk("\r\nread edid failed: accs not done");
pr_debug("\r\nread edid failed: accs not done");
goto end;
}
}
Expand All @@ -691,7 +691,7 @@ int LT8618SXB_Read_EDID(hobot_lt8618_sync_t * sync)
if (extended_flag < 2) { //no block 2, stop reading edid.
hobot_write_lt8618sxb(0x03, 0xc2);
hobot_write_lt8618sxb(0x07, 0x1f);
printk("LT8618SXB_Read_EDID 22 out\n");
pr_debug("LT8618SXB_Read_EDID 22 out\n");
return 0;
}

Expand All @@ -703,14 +703,14 @@ int LT8618SXB_Read_EDID(hobot_lt8618_sync_t * sync)
msleep(5); // wait 5ms for reading edid data.
if (hobot_read_lt8618sxb(0x40) & 0x02) {
if (hobot_read_lt8618sxb(0x40) & 0x50) {
printk("\r\nread edid failed: no ack");
pr_debug("\r\nread edid failed: no ack");
goto end;
} else {
printk(" LT8618SXB_Read_EDID 22 \r\n");
pr_debug(" LT8618SXB_Read_EDID 22 \r\n");
for (j = 0; j < 32; j++) {
Sink_EDID2[i * 32 + j] =
hobot_read_lt8618sxb(0x83);
printk("Sink_EDID[%d * 32 + %d] = %u\n ", Sink_EDID2[i * 32 + j]);
pr_debug("Sink_EDID[%d * 32 + %d] = %u\n ", Sink_EDID2[i * 32 + j]);

// edid_data = hobot_read_lt8618sxb(0x83);
// printf("%02bx,", edid_data);
Expand All @@ -722,7 +722,7 @@ int LT8618SXB_Read_EDID(hobot_lt8618_sync_t * sync)
}
}
} else {
printk("\r\nread edid failed: accs not done");
pr_debug("\r\nread edid failed: accs not done");
goto end;
}
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/misc/bt2hdmi-lt/hobot_lt8618sxb_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static long lt8618_ioctl(struct file *file, unsigned int cmd,

case LT8618_GET_EDID_RESOLUTION_RATIO: {
hobot_lt8618_sync_t sync_t;
printk("LT8618_GET_EDID_RESOLUTION_RATIO\n");
pr_debug("LT8618_GET_EDID_RESOLUTION_RATIO\n");
r = LT8618SXB_Read_EDID(&sync_t);
if(r!=0){
r = -EFAULT;
Expand All @@ -103,7 +103,7 @@ static long lt8618_ioctl(struct file *file, unsigned int cmd,
r = -EFAULT;
break;
}
printk("LT8618_SET_RESOLUTION_RATIO lt8618_iot->ratio = %d\n",lt8618_iot->ratio);
pr_debug("LT8618_SET_RESOLUTION_RATIO lt8618_iot->ratio = %d\n",lt8618_iot->ratio);
Resolution_change(lt8618_iot->ratio);
//r = pwm_config(fl_pwm->pwm, fl_pwm->config.duty_ns, fl_pwm->config.period_ns);
break;
Expand Down

0 comments on commit a0a8932

Please sign in to comment.