From 6bffc5c269bc3d55e99ce5ab4396da43c08ffc45 Mon Sep 17 00:00:00 2001 From: Jonathan Brandmeyer Date: Mon, 23 Jul 2018 16:30:44 -0600 Subject: chromeec: Sync ec_commands.h with CrOS upstream Update ec_commands.h to be a verbatim copy of upstream, except retain the complete copyright notice found in coreboot's copy. Upstream refers to a file not present in coreboot. Change-Id: Ic3daa09ffd83c089b6874e0ea9aab8aa60016775 Signed-off-by: Jonathan Brandmeyer Reviewed-on: https://review.coreboot.org/27620 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh --- src/ec/google/chromeec/ec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ec/google/chromeec/ec.c') diff --git a/src/ec/google/chromeec/ec.c b/src/ec/google/chromeec/ec.c index 094f7ce9a5..734c90c5db 100644 --- a/src/ec/google/chromeec/ec.c +++ b/src/ec/google/chromeec/ec.c @@ -573,14 +573,14 @@ int google_chromeec_reboot(int dev_idx, enum ec_reboot_cmd type, uint8_t flags) return google_chromeec_command(&cec_cmd); } -static int cbi_get_uint32(uint32_t *id, uint32_t type) +static int cbi_get_uint32(uint32_t *id, uint32_t tag) { struct chromeec_command cmd; struct ec_params_get_cbi p; uint32_t r = 0; int rv; - p.type = type; + p.tag = tag; cmd.cmd_code = EC_CMD_GET_CROS_BOARD_INFO; cmd.cmd_version = 0; -- cgit v1.2.3