summaryrefslogtreecommitdiff
path: root/zephyr/emul
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2022-08-23 08:36:38 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-08-24 19:55:49 +0000
commit2afdc49f67728125d6474d4386719667f11ebb57 (patch)
treed5bb4fda128451ea2cc5b4b3854b0fdf44476b9f /zephyr/emul
parent12bd2d84196deaeafa9ce2f18e2e3cdbf07ab92e (diff)
downloadchrome-ec-2afdc49f67728125d6474d4386719667f11ebb57.tar.gz
zephyr: drop label property from BMI emulators
Drop the label property from the emul_bmi and emul_bma255 drivers. BUG=b:239165779 BRANCH=none TEST=./twister --clobber Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I51a48b255760c55ae322f03a2527f36d4c7bb77b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3852573 Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'zephyr/emul')
-rw-r--r--zephyr/emul/emul_bma255.c2
-rw-r--r--zephyr/emul/emul_bmi.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/zephyr/emul/emul_bma255.c b/zephyr/emul/emul_bma255.c
index 5e08f9570f..37b700a649 100644
--- a/zephyr/emul/emul_bma255.c
+++ b/zephyr/emul/emul_bma255.c
@@ -1001,7 +1001,7 @@ static int bma_emul_init(const struct emul *emul, const struct device *parent)
}; \
\
static const struct i2c_common_emul_cfg bma_emul_cfg_##n = { \
- .dev_label = DT_INST_LABEL(n), \
+ .dev_label = DT_NODE_FULL_NAME(DT_DRV_INST(n)), \
.data = &bma_emul_data_##n.common, \
.addr = DT_INST_REG_ADDR(n), \
}; \
diff --git a/zephyr/emul/emul_bmi.c b/zephyr/emul/emul_bmi.c
index 0aea8c91aa..f409b0f967 100644
--- a/zephyr/emul/emul_bmi.c
+++ b/zephyr/emul/emul_bmi.c
@@ -1101,7 +1101,7 @@ static int bmi_emul_init(const struct emul *emul, const struct device *parent)
}, \
}; \
static const struct i2c_common_emul_cfg bmi_emul_cfg_##n = { \
- .dev_label = DT_INST_LABEL(n), \
+ .dev_label = DT_NODE_FULL_NAME(DT_DRV_INST(n)), \
.data = &bmi_emul_data_##n.common, \
.addr = DT_INST_REG_ADDR(n), \
}; \