aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-11-23 21:29:36 -0700
committerSimon Glass <sjg@chromium.org>2018-12-05 06:01:34 -0700
commita749c09a1ea7376ff7a891663bb80ffbe308c485 (patch)
treec55810c10dbc3daaa5801f37cf34ccdafeb7ab24 /drivers
parent5092af6b571c883c49da2b6df7419d73874cdba4 (diff)
downloadu-boot-a749c09a1ea7376ff7a891663bb80ffbe308c485.zip
u-boot-a749c09a1ea7376ff7a891663bb80ffbe308c485.tar.gz
u-boot-a749c09a1ea7376ff7a891663bb80ffbe308c485.tar.bz2
cros: Correct a printf() string and comment
Correct a warning that occurs on sandbox. Also fix the comment style in cros_ec_set_lid_shutdown_mask(). Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/misc/cros_ec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/cros_ec.c b/drivers/misc/cros_ec.c
index 2dcdb3d..565de04 100644
--- a/drivers/misc/cros_ec.c
+++ b/drivers/misc/cros_ec.c
@@ -420,7 +420,7 @@ int cros_ec_read_id(struct udevice *dev, char *id, int maxlen)
ret = ec_command_inptr(dev, EC_CMD_GET_VERSION, 0, NULL, 0,
(uint8_t **)&r, sizeof(*r));
if (ret != sizeof(*r)) {
- log_err("Got rc %d, expected %d\n", ret, sizeof(*r));
+ log_err("Got rc %d, expected %u\n", ret, (uint)sizeof(*r));
return -1;
}
@@ -1466,7 +1466,7 @@ int cros_ec_set_lid_shutdown_mask(struct udevice *dev, int enable)
if (ret < 0)
return ret;
- // Set lid close event state in the EC SMI event mask
+ /* Set lid close event state in the EC SMI event mask */
if (enable)
mask |= EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_CLOSED);
else