summaryrefslogtreecommitdiff
path: root/src/ec
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2022-11-01 02:02:56 -0700
committerMartin L Roth <gaumless@gmail.com>2022-11-12 23:01:47 +0000
commit603de3f763ce7cde43fe50c9d9bb75e86a5c868c (patch)
tree06712ce2f6ed07854e78e345391a1490a5e3e6cb /src/ec
parent675de7524c495dc42f1b47d04aecc6eeabd5d0a1 (diff)
ec/google/chromeec: Deprecate dev_index from google_chromeec_reboot
This removes the dev_index argument from the google_chromeec_reboot API. It's always set to 0, so don't bother passing it. BUG=b:258126464 BRANCH=none TEST=none Change-Id: Iadc3d7c6c1e048e4b1ab8f8cec3cb8eb8db38e6a Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69373 Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/ec')
-rw-r--r--src/ec/google/chromeec/ec.c4
-rw-r--r--src/ec/google/chromeec/ec.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ec/google/chromeec/ec.c b/src/ec/google/chromeec/ec.c
index 9c78404ef8..646dd29848 100644
--- a/src/ec/google/chromeec/ec.c
+++ b/src/ec/google/chromeec/ec.c
@@ -790,7 +790,7 @@ int rtc_get(struct rtc_time *time)
}
#endif
-int google_chromeec_reboot(int dev_idx, enum ec_reboot_cmd type, uint8_t flags)
+int google_chromeec_reboot(enum ec_reboot_cmd type, uint8_t flags)
{
struct ec_params_reboot_ec params = {
.cmd = type,
@@ -804,7 +804,7 @@ int google_chromeec_reboot(int dev_idx, enum ec_reboot_cmd type, uint8_t flags)
.cmd_data_out = &resp,
.cmd_size_in = sizeof(params),
.cmd_size_out = 0, /* ignore response, if any */
- .cmd_dev_index = dev_idx,
+ .cmd_dev_index = 0,
};
return google_chromeec_command(&cmd);
diff --git a/src/ec/google/chromeec/ec.h b/src/ec/google/chromeec/ec.h
index 821eaa3b34..42326601e8 100644
--- a/src/ec/google/chromeec/ec.h
+++ b/src/ec/google/chromeec/ec.h
@@ -88,7 +88,7 @@ int google_chromeec_vstore_write(int slot, uint8_t *data, size_t size);
/* Issue reboot command to EC with specified type and flags. Returns 0 on
success, < 0 otherwise. */
-int google_chromeec_reboot(int dev_idx, enum ec_reboot_cmd type, uint8_t flags);
+int google_chromeec_reboot(enum ec_reboot_cmd type, uint8_t flags);
/**
* Get data from Cros Board Info