mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
baytrail: Battery cutoff return codes were backwards
cutoff() returns 0 on success, not non-zero. BUG=chrome-os-partner:25646 BRANCH=rambi TEST=ectool batterycutoff succeeds Change-Id: Icca0c53aba82381b73dd679de5df3a97153d0662 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/185737 Reviewed-by: Benson Leung <bleung@chromium.org> Reviewed-by: Dave Parker <dparker@chromium.org>
This commit is contained in:
committed by
chrome-internal-fetch
parent
fe7194d29d
commit
dad376eada
@@ -48,7 +48,7 @@ static int cutoff(void)
|
||||
|
||||
static int battery_command_cut_off(struct host_cmd_handler_args *args)
|
||||
{
|
||||
return cutoff() ? EC_RES_SUCCESS : EC_RES_ERROR;
|
||||
return cutoff() ? EC_RES_ERROR : EC_RES_SUCCESS;
|
||||
}
|
||||
DECLARE_HOST_COMMAND(EC_CMD_BATTERY_CUT_OFF, battery_command_cut_off,
|
||||
EC_VER_MASK(0));
|
||||
|
||||
@@ -53,7 +53,7 @@ static int cutoff(void)
|
||||
|
||||
static int battery_command_cut_off(struct host_cmd_handler_args *args)
|
||||
{
|
||||
return cutoff() ? EC_RES_SUCCESS : EC_RES_ERROR;
|
||||
return cutoff() ? EC_RES_ERROR : EC_RES_SUCCESS;
|
||||
}
|
||||
DECLARE_HOST_COMMAND(EC_CMD_BATTERY_CUT_OFF, battery_command_cut_off,
|
||||
EC_VER_MASK(0));
|
||||
|
||||
Reference in New Issue
Block a user