From 511a810662b1133860737381103810b33cc96592 Mon Sep 17 00:00:00 2001 From: Andrew McRae Date: Fri, 1 Nov 2019 15:35:35 +1100 Subject: ec-fans: Make fans configuration const by default. It was pointed out to me that the fans config list was non-const, but there is only 2 boards that require non-const configuration, so by default make it const, but allow an override. BRANCH=none BUG=None TEST=EC compiles, make tests, buildall Change-Id: I3ef8c72f6774e1a76584c47d89287f446199e0f2 Signed-off-by: Andrew McRae Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1893025 Reviewed-by: Andrew McRae Tested-by: Andrew McRae Commit-Queue: Andrew McRae --- board/puff/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'board/puff/board.c') diff --git a/board/puff/board.c b/board/puff/board.c index 0797c24a93..32be3628de 100644 --- a/board/puff/board.c +++ b/board/puff/board.c @@ -93,7 +93,7 @@ const struct fan_rpm fan_rpm_0 = { .rpm_max = 5600, }; -struct fan_t fans[] = { +const struct fan_t fans[] = { [FAN_CH_0] = { .conf = &fan_conf_0, .rpm = &fan_rpm_0, }, }; BUILD_ASSERT(ARRAY_SIZE(fans) == FAN_CH_COUNT); -- cgit v1.2.1