GitLab Commit is coming up on August 3-4. Learn how to innovate together using GitLab, the DevOps platform. Register for free: gitlabcommitvirtual2021.com

Commit 0d4375ce authored by perillamint's avatar perillamint
Browse files

Rename 'try_fix_desync' to fix_cnfgglbl1

parent 9489f7c3
......@@ -22,7 +22,8 @@ static void cmd_help() {
"max17050_dump - dump max17050 regs\n"
"max17050_salrt_off - turn off MAX17050 S_ALRT\n"
"bq24193_dump - dump bq24193 regs\n"
"try_fix_desync - Try to fix 'battery desync' bug\n");
"fix_cnfgglbl1 - Try to fix 'battery desync' bug by restoring MAX77620_REG_CNFGGLBL1\n"
" reg value to 0x92\n");
printk("\nWARN!! WARN!! WARN!!\n"
"peek and poke can cause undesired behavior.\n"
......@@ -347,7 +348,7 @@ const int cmd_bq24193_dump() {
return 0;
}
const void cmd_try_fix_desync() {
const void cmd_fix_cnfgglbl1() {
u8 data = 0x92;
printk("Writing 0x92 to MAX77620@0x00\n");
......@@ -380,8 +381,8 @@ int eval_cmd(char *buf) {
cmd_max17050_salrt_off();
} else if (strncmp(cmd, "bq24193_dump", maxcmdsz) == 0) {
cmd_bq24193_dump();
} else if (strncmp(cmd, "try_fix_desync", maxcmdsz) == 0) {
cmd_try_fix_desync();
} else if (strncmp(cmd, "fix_cnfgglbl1", maxcmdsz) == 0) {
cmd_fix_cnfgglbl1();
} else {
printk("Unknown command: %s\n", cmd);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment