[PATCH 10/18] cros_ec: Complete the comment for cros_ec_read_batt_charge()

Simon Glass sjg at chromium.org
Mon Feb 28 20:08:27 CET 2022


Add the missing 'Return' information.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 include/cros_ec.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/cros_ec.h b/include/cros_ec.h
index 2a7728622c..94c988a7d6 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);
 
-- 
2.35.1.574.g5d30c73bfb-goog



More information about the U-Boot mailing list