From c998f9e36400810ef300d3252d539dc1f8397a96 Mon Sep 17 00:00:00 2001 From: Keith Short Date: Tue, 20 Sep 2022 16:27:23 -0600 Subject: anx7483: Mark tuning data as constant. The tuning data is not modified at runtime. Mark as constant to save RAM space. LOW_COVERAGE_REASON=anx7483 driver does not yet have tests b:248086547 BUG=none BRANCH=none TEST=zmake build -a Signed-off-by: Keith Short Change-Id: I9bb80d804ceea5c54f02c2a2ee9f02c25009ba83 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3906614 Reviewed-by: Diana Z --- driver/retimer/anx7483.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'driver') diff --git a/driver/retimer/anx7483.c b/driver/retimer/anx7483.c index 2194483e44..3f4713fc85 100644 --- a/driver/retimer/anx7483.c +++ b/driver/retimer/anx7483.c @@ -31,7 +31,7 @@ struct anx7483_tuning_set { uint8_t value; }; -static struct anx7483_tuning_set anx7483_usb_enabled[] = { +const static struct anx7483_tuning_set anx7483_usb_enabled[] = { { ANX7483_URX1_PORT_CFG2_REG, ANX7483_CFG2_DEF }, { ANX7483_URX2_PORT_CFG2_REG, ANX7483_CFG2_DEF }, { ANX7483_DRX1_PORT_CFG2_REG, ANX7483_CFG2_DEF }, @@ -277,9 +277,9 @@ static int anx7483_get(const struct usb_mux *me, mux_state_t *mux_state) } /* Helper to apply entire array of tuning registers, returning on first error */ -static enum ec_error_list anx7483_apply_tuning(const struct usb_mux *me, - struct anx7483_tuning_set *reg, - int num) +static enum ec_error_list +anx7483_apply_tuning(const struct usb_mux *me, + const struct anx7483_tuning_set *reg, int num) { int i; -- cgit v1.2.1