diff options
author | Andrew McRae <amcrae@google.com> | 2019-11-01 15:35:35 +1100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-11-02 08:20:02 +0000 |
commit | 511a810662b1133860737381103810b33cc96592 (patch) | |
tree | a5d641afd5876e7ae5cf256eea6af922789877ae /board/akemi | |
parent | 9146a5e4a9eb1e1402ef61b23795b4ead4f17510 (diff) | |
download | chrome-ec-511a810662b1133860737381103810b33cc96592.tar.gz |
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 <amcrae@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1893025
Reviewed-by: Andrew McRae <amcrae@chromium.org>
Tested-by: Andrew McRae <amcrae@chromium.org>
Commit-Queue: Andrew McRae <amcrae@chromium.org>
Diffstat (limited to 'board/akemi')
-rw-r--r-- | board/akemi/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/akemi/board.c b/board/akemi/board.c index f4af724a8d..ff3385679f 100644 --- a/board/akemi/board.c +++ b/board/akemi/board.c @@ -287,7 +287,7 @@ const struct fan_rpm fan_rpm_0 = { .rpm_max = 6900, }; -struct fan_t fans[FAN_CH_COUNT] = { +const struct fan_t fans[FAN_CH_COUNT] = { [FAN_CH_0] = { .conf = &fan_conf_0, .rpm = &fan_rpm_0, }, }; |