Commit b8d7b29
chgstv2: Refactor charger_discharge_on_ac
This patch makes charger_discharge_on_ac call board_discharge_on_ac.
It also makes set_chg_ctrl_mode call charger_discharge_on_ac. This
makes sense since when the charge control mode changes,
discharge-on-ac also needs to be enabled or disabled.
BUG=b:188457962
BRANCH=none
TEST=make runhosttests
Change-Id: I65ec09f580afc987cc86f4c60c15c1f90ead6c3c
Signed-off-by: Daisuke Nojiri <[email protected]>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/29868481 parent f73c258 commit b8d7b29
3 files changed
+36
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1408 | 1408 | | |
1409 | 1409 | | |
1410 | 1410 | | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
1411 | 1421 | | |
1412 | | - | |
1413 | | - | |
1414 | | - | |
| 1422 | + | |
| 1423 | + | |
1415 | 1424 | | |
1416 | | - | |
1417 | | - | |
1418 | | - | |
1419 | | - | |
| 1425 | + | |
1420 | 1426 | | |
1421 | 1427 | | |
1422 | 1428 | | |
1423 | | - | |
1424 | | - | |
1425 | | - | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
1426 | 1443 | | |
1427 | 1444 | | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
1428 | 1450 | | |
1429 | 1451 | | |
1430 | 1452 | | |
| |||
2739 | 2761 | | |
2740 | 2762 | | |
2741 | 2763 | | |
2742 | | - | |
2743 | | - | |
2744 | | - | |
2745 | | - | |
2746 | | - | |
2747 | | - | |
2748 | | - | |
2749 | | - | |
2750 | | - | |
2751 | | - | |
2752 | 2764 | | |
2753 | 2765 | | |
2754 | 2766 | | |
| |||
2954 | 2966 | | |
2955 | 2967 | | |
2956 | 2968 | | |
2957 | | - | |
2958 | 2969 | | |
2959 | 2970 | | |
2960 | 2971 | | |
| |||
2964 | 2975 | | |
2965 | 2976 | | |
2966 | 2977 | | |
2967 | | - | |
2968 | | - | |
2969 | | - | |
2970 | | - | |
2971 | | - | |
2972 | | - | |
2973 | | - | |
2974 | | - | |
2975 | 2978 | | |
2976 | 2979 | | |
2977 | 2980 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
444 | 447 | | |
445 | 448 | | |
446 | 449 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4174 | 4174 | | |
4175 | 4175 | | |
4176 | 4176 | | |
4177 | | - | |
| 4177 | + | |
4178 | 4178 | | |
4179 | 4179 | | |
4180 | 4180 | | |
| |||
0 commit comments