| /* SPDX-License-Identifier: GPL-2.0 */ |
| /* |
| * KUnit basic device implementation |
| * |
| * Implementation of struct kunit_device helpers. |
| * |
| * Copyright (C) 2023, Google LLC. |
| * Author: David Gow <davidgow@google.com> |
| */ |
| |
| #ifndef _KUNIT_DEVICE_H |
| #define _KUNIT_DEVICE_H |
| |
| #if IS_ENABLED(CONFIG_KUNIT) |
| |
| #include <kunit/test.h> |
| |
| struct kunit_device; |
| struct device; |
| struct device_driver; |
| |
| struct device *kunit_device_register(struct kunit *test, const char *name); |
| struct device *kunit_device_register_with_driver(struct kunit *test, const char *name, struct device_driver *drv); |
| void kunit_device_unregister(struct kunit *test, struct device *dev); |
| |
| #endif |
| |
| #endif |