diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-27 17:47:28 +1300 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-02 23:12:53 +0000 |
commit | 41025766295073696e2eace5b5be11cf80af525e (patch) | |
tree | 73e7a5dfe244d12b99da40c4070b0ad12a54a092 /zephyr/shim/src/adc.c | |
parent | 227d8ca20a7ac1cd6dd580b426998a36bdd22994 (diff) | |
download | chrome-ec-41025766295073696e2eace5b5be11cf80af525e.tar.gz |
zephyr: Update ADC shim for Zephyr 2.5
This seems to have changed with the new version. We now need to use
an enum since we cannot get the label except as a string.
Update it.
BUG=b:175881324
BRANCH=none
TEST=build Zephyr with lazor and some other CLs and see that the ADC
enum is now available and there are not build errors
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: Iefa1a3582ec7d20a41b1e26a8210fdf7c8b7e1ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2788839
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/shim/src/adc.c')
-rw-r--r-- | zephyr/shim/src/adc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/shim/src/adc.c b/zephyr/shim/src/adc.c index 7ace7ecf82..3e7aa6f37f 100644 --- a/zephyr/shim/src/adc.c +++ b/zephyr/shim/src/adc.c @@ -11,7 +11,7 @@ const struct device *adc_dev; #if DT_NODE_EXISTS(DT_INST(0, named_adc_channels)) #define ADC_CHANNEL_COMMA(node_id) \ - [node_id] = { \ + [ZSHIM_ADC_ID(node_id)] = { \ .name = DT_LABEL(node_id), \ .input_ch = DT_PROP(node_id, channel), \ .factor_mul = DT_PROP(node_id, mul), \ |