summaryrefslogtreecommitdiff
path: root/include/usbc_ppc.h
diff options
context:
space:
mode:
authorAseda Aboagye <aaboagye@google.com>2017-11-27 09:58:31 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-12-06 17:30:45 -0800
commit0dd7716c4f8fbd73e57060d32badf4b2c3767678 (patch)
treee65dc4b5191a9babe9f3461c84e42f9cec89145d /include/usbc_ppc.h
parent5ab0c9fcefd40212feb9b91aa4ab3d7db8c7ed9b (diff)
downloadchrome-ec-0dd7716c4f8fbd73e57060d32badf4b2c3767678.tar.gz
ppc: sn5s330: Fix current limit setting.
The default sourcing current limit can be set by the following config option: CONFIG_USB_PD_MAX_SINGLE_SOURCE_CURRENT However, the way that this macro was being used was incorrect for the SN5S330 driver. Since, enum values are not known at compile time, the check needs to happen during runtime. This commit makes this change. BUG=None BRANCH=None TEST=Enable CONFIG_USB_PD_MAX_SINGLE_SOURCE_CURRENT on a board that uses the SN5S330, verify that there are no build errors. Change-Id: I04a1fa1e2e42c2f4ba49f1769857a8796b2f0a6f Signed-off-by: Aseda Aboagye <aaboagye@google.com> Reviewed-on: https://chromium-review.googlesource.com/791501 Commit-Ready: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'include/usbc_ppc.h')
0 files changed, 0 insertions, 0 deletions