diff options
author | Yuval Peress <peress@chromium.org> | 2021-08-31 16:29:23 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-01 16:30:46 +0000 |
commit | 3af62490f82398b38fdcb56246eca8a0461631a1 (patch) | |
tree | 20ad3f7e52c36d6a3c7e847315b03ddd5f251fc4 /include/driver | |
parent | 6810cc69d0878a803c630578cd09a478d8726907 (diff) | |
download | chrome-ec-3af62490f82398b38fdcb56246eca8a0461631a1.tar.gz |
driver: ln9310: Update init function signature to return status
Return the status of the init function. This will be used in
testing to verify that initialization was correct.
BRANCH=none
BUG=b:184856083
TEST=make buildall -j
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I578b32b24b3ee59abf646307fb9670d2db74fe3b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3133624
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'include/driver')
-rw-r--r-- | include/driver/ln9310.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/driver/ln9310.h b/include/driver/ln9310.h index b7954a70f3..0ae7af4c4c 100644 --- a/include/driver/ln9310.h +++ b/include/driver/ln9310.h @@ -210,8 +210,12 @@ struct ln9310_config_t { /* Configuration struct defined at board level */ extern const struct ln9310_config_t ln9310_config; -/* Init the driver */ -void ln9310_init(void); +/** + * @brief Init the driver + * + * @return EC_SUCCESS when initialization was complete. + */ +int ln9310_init(void); /* Enable/disable the ln9310 output */ void ln9310_software_enable(int enable); |