diff options
| author | Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> | 2026-05-22 16:42:16 +0300 |
|---|---|---|
| committer | Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> | 2026-05-26 12:19:54 +0300 |
| commit | 4c237ab773c93959aa2a7750f9dba772b5f1baee (patch) | |
| tree | 87c41b3ca89f0952d06f42ef2cc2903bf68ab6a3 /include | |
| parent | b12e12ee4138e30d786eda02223e87044c989bb1 (diff) | |
| download | linux-4c237ab773c93959aa2a7750f9dba772b5f1baee.tar.xz | |
kunit: provide kunit_platform_device_register_full()
Provide a kunit-managed variant of platform_device_register_full().
Reviewed-by: David Gow <david@davidgow.net>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/20260522-gpiolib-kunit-v3-1-b15fe6987430@oss.qualcomm.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/kunit/platform_device.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/kunit/platform_device.h b/include/kunit/platform_device.h index f8236a8536f7..8cad6e1c3e7e 100644 --- a/include/kunit/platform_device.h +++ b/include/kunit/platform_device.h @@ -6,10 +6,14 @@ struct completion; struct kunit; struct platform_device; struct platform_driver; +struct platform_device_info; struct platform_device * kunit_platform_device_alloc(struct kunit *test, const char *name, int id); int kunit_platform_device_add(struct kunit *test, struct platform_device *pdev); +struct platform_device * +kunit_platform_device_register_full(struct kunit *test, + const struct platform_device_info *pdevinfo); int kunit_platform_device_prepare_wait_for_probe(struct kunit *test, struct platform_device *pdev, |
