Svyatoslav Ryhel | 8b215e1 | 2023-04-25 10:57:21 +0300 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (C) 2023 Svyatoslav Ryhel <clamor95@gmail.com> |
| 4 | */ |
| 5 | |
| 6 | #include <dm.h> |
| 7 | #include <dm/test.h> |
| 8 | #include <extcon.h> |
| 9 | #include <test/test.h> |
| 10 | #include <test/ut.h> |
| 11 | |
| 12 | static int dm_test_extcon(struct unit_test_state *uts) |
| 13 | { |
| 14 | struct udevice *dev; |
| 15 | |
| 16 | ut_assertok(uclass_get_device_by_name(UCLASS_EXTCON, "extcon", &dev)); |
| 17 | |
| 18 | return 0; |
| 19 | } |
Simon Glass | 725c438 | 2024-08-22 07:57:48 -0600 | [diff] [blame] | 20 | DM_TEST(dm_test_extcon, UTF_SCAN_FDT); |