| 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
|---|---|
| 2 | #ifndef _KUNIT_PLATFORM_DRIVER_H |
| 3 | #define _KUNIT_PLATFORM_DRIVER_H |
| 4 | |
| 5 | struct completion; |
| 6 | struct kunit; |
| 7 | struct platform_device; |
| 8 | struct platform_driver; |
| 9 | |
| 10 | struct platform_device * |
| 11 | kunit_platform_device_alloc(struct kunit *test, const char *name, int id); |
| 12 | int kunit_platform_device_add(struct kunit *test, struct platform_device *pdev); |
| 13 | |
| 14 | int kunit_platform_device_prepare_wait_for_probe(struct kunit *test, |
| 15 | struct platform_device *pdev, |
| 16 | struct completion *x); |
| 17 | |
| 18 | int kunit_platform_driver_register(struct kunit *test, |
| 19 | struct platform_driver *drv); |
| 20 | |
| 21 | #endif |
| 22 |
