1 /*
2 * Copyright (c) 2018 Intel Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7 #include <zephyr/kernel.h>
8 #include <zephyr/device.h>
9
10
11 #define DUMMY_DRIVER_NAME "dummy_driver"
12
13 typedef int (*dummy_api_configure_t)(const struct device *dev,
14 uint32_t dev_config);
15
16
17 struct dummy_driver_api {
18 dummy_api_configure_t configure;
19 };
20
dummy_configure(const struct device * dev,uint32_t config)21 static int dummy_configure(const struct device *dev, uint32_t config)
22 {
23 return 0;
24 }
25
26 static const struct dummy_driver_api funcs = {
27 .configure = dummy_configure,
28 };
29
dummy_init(const struct device * dev)30 int dummy_init(const struct device *dev)
31 {
32 return 0;
33 }
34
35 /**
36 * @cond INTERNAL_HIDDEN
37 */
38 DEVICE_DEFINE(dummy_driver, DUMMY_DRIVER_NAME, dummy_init, NULL, NULL, NULL,
39 POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &funcs);
40
41 /**
42 * @endcond
43 */
44