zephyr/tests/drivers/pinctrl/common/test_device.c
Gerard Marull-Paretas 1eb683a514 device: remove redundant init functions
Remove all init functions that do nothing, and provide a `NULL` to
*DEVICE*DEFINE* macros.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-04-19 10:00:25 +02:00

21 lines
487 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>
#define PINCTRL_DEVICE_INIT(inst) \
PINCTRL_DT_INST_DEFINE(inst); \
\
DEVICE_DT_INST_DEFINE(inst, NULL, NULL, NULL, NULL, POST_KERNEL,\
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, NULL);
DT_INST_FOREACH_STATUS_OKAY(PINCTRL_DEVICE_INIT)