summaryrefslogtreecommitdiff
path: root/driver/usb_switch_tsu6721.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-10-24 14:36:10 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-10-25 00:29:00 +0000
commit4a1ecb67f9ff1745422aecdd5cc70a9f630d7dc8 (patch)
treef02faa2f895fdab580b73ec616e89631ce8c7c9b /driver/usb_switch_tsu6721.c
parent0f3a14def8b37430f7d58ab48f4aacf0a5e5e023 (diff)
downloadchrome-ec-4a1ecb67f9ff1745422aecdd5cc70a9f630d7dc8.tar.gz
pit: Fix battery cutoff command to use deferred function call
Rather than hackily sending a host response before sending the battery cutoff command, just put the cutoff command in a deferred function call and respond normally to the host command. BUG=chrome-os-partner:23568 BRANCH=none TEST=On battery power, 'ectool batterycutoff' prints success, then the system loses power due to battery cutoff. Change-Id: Ic42d08ef94a10f89d093290cda63da01fca985a5 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/174573 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'driver/usb_switch_tsu6721.c')
0 files changed, 0 insertions, 0 deletions