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