summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDino Li <Dino.Li@ite.com.tw>2023-01-11 13:50:09 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-01-12 05:37:29 +0000
commitd4d13800d6f7649e4fc16c7fed80c78574fb29ac (patch)
treef2a7e1ec0da09db53bb82a23360a68b93d51d66d
parent19b4b94a0589a15fa40f7694ec79b3136e3219c6 (diff)
downloadchrome-ec-d4d13800d6f7649e4fc16c7fed80c78574fb29ac.tar.gz
shim/bc12_rt9490: fix compatible
Correct shim code since both yaml and dtsi compatibility are "richtek,rt9490". BRANCH=none BUG=none TEST=The rt9490_interrupt isr is registered correctly. Change-Id: Idb1e3d19060852514ba98a513f2f5f34cbda5bc3 Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4154450 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
-rw-r--r--zephyr/shim/src/bc12_rt9490.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zephyr/shim/src/bc12_rt9490.c b/zephyr/shim/src/bc12_rt9490.c
index a3c97e7faf..2da28050ec 100644
--- a/zephyr/shim/src/bc12_rt9490.c
+++ b/zephyr/shim/src/bc12_rt9490.c
@@ -25,8 +25,8 @@ DECLARE_HOOK(HOOK_INIT, rt9490_bc12_enable_irqs, HOOK_PRIO_DEFAULT);
: rt9490_interrupt(USBC_PORT_NEW(usbc_id)); \
break;))
-#define RT9490_CHECK(usbc_id, bc12_id) \
- COND_CODE_1(DT_NODE_HAS_COMPAT(bc12_id, richtek_rt9490_bc12), \
+#define RT9490_CHECK(usbc_id, bc12_id) \
+ COND_CODE_1(DT_NODE_HAS_COMPAT(bc12_id, richtek_rt9490), \
(RT9490_DISPATCH_INTERRUPT(usbc_id, bc12_id)), ())
#define RT9490_INTERRUPT(usbc_id) \