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:
parent
1b73d1e0c6
commit
1eb683a514
87 changed files with 149 additions and 735 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue