projects/linux·blob master · refs

29 lines · 867 B

1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * KUnit resource management helpers for firmware nodes.
4 *
5 * Copyright (C) Qualcomm Technologies, Inc. and/or its subsidiaries
6 */
7
8#ifndef _KUNIT_FWNODE_H
9#define _KUNIT_FWNODE_H
10
11struct device;
12struct fwnode_handle;
13struct kunit;
14struct property_entry;
15struct software_node;
16
17struct fwnode_handle *
18kunit_fwnode_create_software_node(struct kunit *test,
19 const struct property_entry *properties,
20 const struct fwnode_handle *parent);
21struct fwnode_handle *
22kunit_software_node_register(struct kunit *test,
23 const struct software_node *node);
24int kunit_software_node_register_node_group(struct kunit *test,
25 const struct software_node *const *nodes);
26int kunit_device_add_software_node(struct kunit *test, struct device *dev,
27 const struct software_node *node);
28
29#endif /* _KUNIT_FWNODE_H */