summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2022-09-20 16:27:23 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-09-22 15:22:30 +0000
commitc998f9e36400810ef300d3252d539dc1f8397a96 (patch)
treeaeedda290ac42cc6fad0a6ae4d88b71b268a295a /driver
parent765b6e33b9298a31d3ba05e32003aeeb4010fce5 (diff)
downloadchrome-ec-c998f9e36400810ef300d3252d539dc1f8397a96.tar.gz
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 <keithshort@chromium.org> Change-Id: I9bb80d804ceea5c54f02c2a2ee9f02c25009ba83 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3906614 Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r--driver/retimer/anx7483.c8
1 files changed, 4 insertions, 4 deletions
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;