diff options
author | Craig Hesling <hesling@chromium.org> | 2020-02-25 10:02:12 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-02-26 19:51:26 +0000 |
commit | 7be0faa3c82aea1420f0731de2f9700fec8c16b4 (patch) | |
tree | ff3da77ecba052ad3173c40f60a98bc8222109e0 /board | |
parent | f46434f387d4fcf83aa9b215f8b6f03ec4da1222 (diff) | |
download | chrome-ec-7be0faa3c82aea1420f0731de2f9700fec8c16b4.tar.gz |
nocturne_fp/hatch_fp: Make explicit fields in spi array
This has no functional change, as verified with compare_build.sh.
BRANCH=nocturne,hatch
BUG=none
TEST=./util/compare_build.sh --board nocturne_fp
TEST=./util/compare_build.sh --board hatch_fp
Change-Id: I4e58a65cd47fe136a471d2c16444d106e8431e5c
Signed-off-by: Craig Hesling <hesling@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2071149
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/hatch_fp/board.c | 2 | ||||
-rw-r--r-- | board/nocturne_fp/board.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/board/hatch_fp/board.c b/board/hatch_fp/board.c index 2be0411e3f..b7fed1ae58 100644 --- a/board/hatch_fp/board.c +++ b/board/hatch_fp/board.c @@ -62,7 +62,7 @@ void slp_event(enum gpio_signal signal) /* SPI devices */ const struct spi_device_t spi_devices[] = { /* Fingerprint sensor (SCLK at 4Mhz) */ - { CONFIG_SPI_FP_PORT, 3, GPIO_SPI2_NSS } + { .port = CONFIG_SPI_FP_PORT, .div = 3, .gpio_cs = GPIO_SPI2_NSS } }; const unsigned int spi_devices_used = ARRAY_SIZE(spi_devices); diff --git a/board/nocturne_fp/board.c b/board/nocturne_fp/board.c index 0afb294551..bae9936c61 100644 --- a/board/nocturne_fp/board.c +++ b/board/nocturne_fp/board.c @@ -62,7 +62,7 @@ void slp_event(enum gpio_signal signal) /* SPI devices */ const struct spi_device_t spi_devices[] = { /* Fingerprint sensor (SCLK at 4Mhz) */ - { CONFIG_SPI_FP_PORT, 3, GPIO_SPI4_NSS } + { .port = CONFIG_SPI_FP_PORT, .div = 3, .gpio_cs = GPIO_SPI4_NSS } }; const unsigned int spi_devices_used = ARRAY_SIZE(spi_devices); |