summaryrefslogtreecommitdiff
path: root/test/dm/extcon.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-05-03 09:23:21 -0400
committerTom Rini <trini@konsulko.com>2023-05-03 09:23:21 -0400
commit1807c0c70a73c7697f32c04cad20ea9cd11b248e (patch)
tree258d2fa7d274ed5048640ceef121841d49494784 /test/dm/extcon.c
parent021e303492ccfdf58425bedb13c1621367cc5cc7 (diff)
parent8144210e750d42941eb8028fdfc4e027ef043d8f (diff)
Merge branch '2023-05-02-assorted-platform-updates-and-additions'
- Updates for starqltechn and other qualcomm platforms, hi3798mv200, Broadcom Northstar, and mediatek platforms - Drop omap5_uevm, and assorted TI platform updates - Add MAX14526
Diffstat (limited to 'test/dm/extcon.c')
-rw-r--r--test/dm/extcon.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/dm/extcon.c b/test/dm/extcon.c
new file mode 100644
index 00000000000..6a4e22bfdc5
--- /dev/null
+++ b/test/dm/extcon.c
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2023 Svyatoslav Ryhel <clamor95@gmail.com>
+ */
+
+#include <dm.h>
+#include <dm/test.h>
+#include <extcon.h>
+#include <test/test.h>
+#include <test/ut.h>
+
+static int dm_test_extcon(struct unit_test_state *uts)
+{
+ struct udevice *dev;
+
+ ut_assertok(uclass_get_device_by_name(UCLASS_EXTCON, "extcon", &dev));
+
+ return 0;
+}
+
+DM_TEST(dm_test_extcon, UT_TESTF_SCAN_FDT);