summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@google.com>2022-11-24 15:41:21 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-11-29 20:54:36 +0000
commiteae6dfc05ee73b7efbd5e1dfa34d39134f2a4480 (patch)
treef024f1e5c83f1802a527c750990b9647ea059a29
parentec8d1ac9dee37d342d6b992e8d93b69a1b9527ca (diff)
downloadchrome-ec-eae6dfc05ee73b7efbd5e1dfa34d39134f2a4480.tar.gz
zephyr: rt9490: drop the compiler guards
bc12_rt9490.c is only being built if the driver or emulators are enabled, and the emulator defines both compatibles anyway, so it's not really needed. Also fix a dts syntax thing. BRANCH=none BUG=none TEST=cq dry run Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I622dbf07f74f52b5c3bdbe634c5c1bcd0774845e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4054624 Reviewed-by: Sam Hurst <shurst@google.com> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
-rw-r--r--zephyr/shim/src/bc12_rt9490.c4
-rw-r--r--zephyr/test/drivers/rt9490/charger.dts2
2 files changed, 1 insertions, 5 deletions
diff --git a/zephyr/shim/src/bc12_rt9490.c b/zephyr/shim/src/bc12_rt9490.c
index 5394069d51..a3c97e7faf 100644
--- a/zephyr/shim/src/bc12_rt9490.c
+++ b/zephyr/shim/src/bc12_rt9490.c
@@ -12,8 +12,6 @@
#include <zephyr/devicetree.h>
-#if DT_HAS_COMPAT_STATUS_OKAY(DT_DRV_COMPAT)
-
static void rt9490_bc12_enable_irqs(void)
{
DT_INST_FOREACH_STATUS_OKAY(BC12_GPIO_ENABLE_INTERRUPT);
@@ -43,5 +41,3 @@ void rt9490_bc12_dt_interrupt(enum gpio_signal signal)
break;
}
}
-
-#endif /* DT_HAS_COMPAT_STATUS_OKAY(DT_DRV_COMPAT) */
diff --git a/zephyr/test/drivers/rt9490/charger.dts b/zephyr/test/drivers/rt9490/charger.dts
index e74729aaed..4d4a2a4f35 100644
--- a/zephyr/test/drivers/rt9490/charger.dts
+++ b/zephyr/test/drivers/rt9490/charger.dts
@@ -15,7 +15,7 @@
};
&i2c0 {
- status="okay";
+ status = "okay";
rt9490: rt9490@53 {
compatible = "zephyr,rt9490-emul", "richtek,rt9490";