summaryrefslogtreecommitdiff
path: root/include/lightbar.h
diff options
context:
space:
mode:
authorVic (Chun-Ju) Yang <victoryang@chromium.org>2013-12-16 16:09:20 +0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-12-17 09:31:06 +0000
commita905b84fd1264d826b8e724839f52925a38f5926 (patch)
tree1d143d2a9158e2d4698971772ff0b76779728523 /include/lightbar.h
parent1af1c74c100e6b72d2570d3f082f82a292a29a0e (diff)
downloadchrome-ec-stabilize-5116.53.B.tar.gz
When a GPIO signal is defined by GPIO_SIGNAL_NOT_IMPLEMENTED, it should still be able to call various GPIO methods on that GPIO signal. Since __builtin_clz dies when the value passed in is zero, we need to check this before calling __builtin_clz. BUG=chrome-os-partner:24107 TEST='sysjump RW' and the system doesn't crash BRANCH=None Change-Id: I5025a2f218d549316fe096c07bd3c7207fe9dbc2 Signed-off-by: Vic (Chun-Ju) Yang <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/180183 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/lightbar.h')
0 files changed, 0 insertions, 0 deletions