aboutsummaryrefslogtreecommitdiff
path: root/include/cros_ec.h
diff options
context:
space:
mode:
authorSimon Glass2022-02-28 12:08:27 -0700
committerTom Rini2022-04-06 14:01:42 -0400
commita50b56133315b16a03597d6a66c106e2e1de5903 (patch)
treed0737f7775dea2e72db5d6c091b932973e180149 /include/cros_ec.h
parent9dc29742c59888b0375d3975636e2b12c4a84683 (diff)
cros_ec: Complete the comment for cros_ec_read_batt_charge()
Add the missing 'Return' information. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/cros_ec.h')
-rw-r--r--include/cros_ec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/cros_ec.h b/include/cros_ec.h
index 2a7728622c3..94c988a7d65 100644
--- a/include/cros_ec.h
+++ b/include/cros_ec.h
@@ -648,6 +648,7 @@ int cros_ec_vstore_write(struct udevice *dev, int slot, const uint8_t *data,
*
* @dev: CROS-EC device
* @chargep: Return battery-charge state as a percentage
+ * Return: 0 if OK, -ve on error
*/
int cros_ec_read_batt_charge(struct udevice *dev, uint *chargep);