extcon.c 418 B

123456789101112131415161718192021
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2023 Svyatoslav Ryhel <clamor95@gmail.com>
  4. */
  5. #include <dm.h>
  6. #include <dm/test.h>
  7. #include <extcon.h>
  8. #include <test/test.h>
  9. #include <test/ut.h>
  10. static int dm_test_extcon(struct unit_test_state *uts)
  11. {
  12. struct udevice *dev;
  13. ut_assertok(uclass_get_device_by_name(UCLASS_EXTCON, "extcon", &dev));
  14. return 0;
  15. }
  16. DM_TEST(dm_test_extcon, UT_TESTF_SCAN_FDT);