From 54fb930febee991037f7992f000293e93e48008b Mon Sep 17 00:00:00 2001 From: Peter Bigot Date: Thu, 25 Feb 2021 11:04:44 -0600 Subject: [PATCH] tests: devicetree: device: avoid multiple declarations The test defines driver instances for the devices in the tree, but there's now a dummy driver for vnd,i2c that would also attempt to define the same device on any platform that defaults CONFIG_I2C=y, resulting in multiply-defined symbol errors. native_posix does not default CONFIG_I2C=y, and because CONFIG_I2C_TEST is hidden there's no way to turn it on or off at the driver level, so disable the subsystem to mask the driver, leaving the test code as the only place the devices are defined. Signed-off-by: Peter Bigot --- tests/lib/devicetree/devices/prj.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/lib/devicetree/devices/prj.conf b/tests/lib/devicetree/devices/prj.conf index 9467c292689..723374e3dc0 100644 --- a/tests/lib/devicetree/devices/prj.conf +++ b/tests/lib/devicetree/devices/prj.conf @@ -1 +1,2 @@ CONFIG_ZTEST=y +CONFIG_I2C=n