zephyr/tests/drivers/pinctrl/common/test_device.c
Gerard Marull-Paretas ade7ccb918 tests: migrate includes to <zephyr/...>
In order to bring consistency in-tree, migrate all tests to the new
prefix <zephyr/...>. Note that the conversion has been scripted, refer
to #45388 for more details.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-05-06 20:02:14 +02:00

29 lines
596 B
C

/*
* Copyright (c) 2021 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#define DT_DRV_COMPAT vnd_pinctrl_device
#include "test_device.h"
#include <zephyr/device.h>
#include <zephyr/drivers/pinctrl.h>
int test_device_init(const struct device *dev)
{
ARG_UNUSED(dev);
return 0;
}
#define PINCTRL_DEVICE_INIT(inst) \
PINCTRL_DT_INST_DEFINE(inst); \
\
DEVICE_DT_INST_DEFINE(inst, test_device_init, NULL, NULL, NULL, \
POST_KERNEL, \
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, NULL);
DT_INST_FOREACH_STATUS_OKAY(PINCTRL_DEVICE_INIT)