summaryrefslogtreecommitdiff
path: root/zephyr/shim/src/temp_sensors.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-27 17:47:28 +1300
committerCommit Bot <commit-bot@chromium.org>2021-04-02 23:12:53 +0000
commit41025766295073696e2eace5b5be11cf80af525e (patch)
tree73e7a5dfe244d12b99da40c4070b0ad12a54a092 /zephyr/shim/src/temp_sensors.c
parent227d8ca20a7ac1cd6dd580b426998a36bdd22994 (diff)
downloadchrome-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/temp_sensors.c')
-rw-r--r--zephyr/shim/src/temp_sensors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/shim/src/temp_sensors.c b/zephyr/shim/src/temp_sensors.c
index dfe259f126..b29b5f720b 100644
--- a/zephyr/shim/src/temp_sensors.c
+++ b/zephyr/shim/src/temp_sensors.c
@@ -12,7 +12,7 @@
[ZSHIM_TEMP_SENSOR_ID(node_id)] = { \
.name = DT_LABEL(node_id), \
.read = DT_ENUM_TOKEN(node_id, get_temp_func), \
- .idx = DT_PHANDLE(node_id, adc), \
+ .idx = ZSHIM_ADC_ID(DT_PHANDLE(node_id, adc)), \
.type = TEMP_SENSOR_TYPE_BOARD, \
},