From 41025766295073696e2eace5b5be11cf80af525e Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 27 Mar 2021 17:47:28 +1300 Subject: 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 Change-Id: Iefa1a3582ec7d20a41b1e26a8210fdf7c8b7e1ef Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2788839 Reviewed-by: Keith Short --- zephyr/shim/src/temp_sensors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zephyr/shim/src/temp_sensors.c') 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, \ }, -- cgit v1.2.1