From 3af62490f82398b38fdcb56246eca8a0461631a1 Mon Sep 17 00:00:00 2001 From: Yuval Peress Date: Tue, 31 Aug 2021 16:29:23 -0600 Subject: 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 Change-Id: I578b32b24b3ee59abf646307fb9670d2db74fe3b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3133624 Reviewed-by: Daisuke Nojiri Reviewed-by: Jeremy Bettis --- include/driver/ln9310.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/driver/ln9310.h') 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); -- cgit v1.2.1