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>
This commit is contained in:
Gerard Marull-Paretas 2023-04-18 12:25:15 +02:00 committed by Carles Cufí
commit 1eb683a514
87 changed files with 149 additions and 735 deletions

View file

@ -19,11 +19,6 @@ void mock_temp_nrf5_value_set(struct sensor_value *val)
value = *val;
}
static int mock_temp_nrf5_init(const struct device *dev)
{
return 0;
}
static int mock_temp_nrf5_sample_fetch(const struct device *dev,
enum sensor_channel chan)
{
@ -45,7 +40,7 @@ static const struct sensor_driver_api mock_temp_nrf5_driver_api = {
};
DEVICE_DT_DEFINE(DT_INST(0, nordic_nrf_temp),
mock_temp_nrf5_init,
NULL,
NULL,
NULL,
NULL,