mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
power: supply: rk818_battery: Fix compile warning
drivers/power/supply/rk818_battery.c: In function 'rk818_bat_calc_zero_linek':
drivers/power/supply/rk818_battery.c:1741:25: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
1741 | else
| ^~~~
drivers/power/supply/rk818_battery.c:45:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
45 | do { \
| ^~
drivers/power/supply/rk818_battery.c:1743:33: note: in expansion of macro 'DBG'
1743 | DBG("ZERO-new: zero_linek adjust step6...\n");
| ^~~
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iefecf6fe6b44ba84850a89a6e8cc12637f801ac0
This commit is contained in:
@@ -1740,7 +1740,7 @@ static void rk818_bat_calc_zero_linek(struct rk818_battery *di)
|
||||
di->zero_linek = 1200;
|
||||
else
|
||||
di->zero_linek = 800;
|
||||
DBG("ZERO-new: zero_linek adjust step6...\n");
|
||||
DBG("ZERO-new: zero_linek adjust step6...\n");
|
||||
}
|
||||
} else {
|
||||
/* xsoc < 0 */
|
||||
|
||||
Reference in New Issue
Block a user