diff options
author | Keith Short <keithshort@chromium.org> | 2021-11-18 16:54:54 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-30 23:55:59 +0000 |
commit | 23a975d12e3453aac4e9a15048ba43a8989d3073 (patch) | |
tree | f0162d7118edfe154f283a4e2206f130ebd21bab /board/bds | |
parent | 508e74c84334bc3d2118c7f333320a4f7292ea6f (diff) | |
download | chrome-ec-23a975d12e3453aac4e9a15048ba43a8989d3073.tar.gz |
i2c: Use declared initializers for i2c_ports: boards a-l
Convert all instances of i2c_ports[] to use declared initializers. This
allows the fields to be reordered without breaking code.
BUG=none
BRANCH=none
TEST=compare_build.sh
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: Ibced584424f1f64718fb55cec0c972dc939bec5c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3300661
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/bds')
-rw-r--r-- | board/bds/board.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/board/bds/board.c b/board/bds/board.c index 91da893a52..aedc570d51 100644 --- a/board/bds/board.c +++ b/board/bds/board.c @@ -33,7 +33,11 @@ BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT); /* I2C ports */ const struct i2c_port_t i2c_ports[] = { - {"lightbar", 5, 400}, + { + .name = "lightbar", + .port = 5, + .kbps = 400 + }, }; const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); |