xref: /linux/include/kunit/platform_device.h (revision 1260ed77798502de9c98020040d2995008de10cc)
15ac79730SStephen Boyd /* SPDX-License-Identifier: GPL-2.0 */
25ac79730SStephen Boyd #ifndef _KUNIT_PLATFORM_DRIVER_H
35ac79730SStephen Boyd #define _KUNIT_PLATFORM_DRIVER_H
45ac79730SStephen Boyd 
5*875aec23SBrian Norris struct completion;
65ac79730SStephen Boyd struct kunit;
75ac79730SStephen Boyd struct platform_device;
85ac79730SStephen Boyd struct platform_driver;
95ac79730SStephen Boyd 
105ac79730SStephen Boyd struct platform_device *
115ac79730SStephen Boyd kunit_platform_device_alloc(struct kunit *test, const char *name, int id);
125ac79730SStephen Boyd int kunit_platform_device_add(struct kunit *test, struct platform_device *pdev);
135ac79730SStephen Boyd 
145ac79730SStephen Boyd int kunit_platform_device_prepare_wait_for_probe(struct kunit *test,
155ac79730SStephen Boyd 						 struct platform_device *pdev,
165ac79730SStephen Boyd 						 struct completion *x);
175ac79730SStephen Boyd 
185ac79730SStephen Boyd int kunit_platform_driver_register(struct kunit *test,
195ac79730SStephen Boyd 				   struct platform_driver *drv);
205ac79730SStephen Boyd 
215ac79730SStephen Boyd #endif
22