efi_media.c 507 B

123456789101112131415161718192021222324
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Test for EFI_MEDIA uclass
  4. *
  5. * Copyright 2021 Google LLC
  6. */
  7. #include <common.h>
  8. #include <dm.h>
  9. #include <asm/test.h>
  10. #include <dm/test.h>
  11. #include <test/test.h>
  12. #include <test/ut.h>
  13. /* Test that we can use the EFI_MEDIA uclass */
  14. static int dm_test_efi_media(struct unit_test_state *uts)
  15. {
  16. struct udevice *dev;
  17. ut_assertok(uclass_first_device_err(UCLASS_EFI_MEDIA, &dev));
  18. return 0;
  19. }
  20. DM_TEST(dm_test_efi_media, UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT);