Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion drivers/w1/w1_ds2482-800_channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ static int ds2482_init(const struct device *dev)
return 0;
}

static const struct w1_driver_api ds2482_driver_api = {
static DEVICE_API(w1, ds2482_driver_api) = {
.reset_bus = ds2482_reset_bus,
.read_bit = ds2482_read_bit,
.write_bit = ds2482_write_bit,
Expand Down
2 changes: 1 addition & 1 deletion drivers/w1/w1_ds2484.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ static int ds2484_init(const struct device *dev)
return 0;
}

static const struct w1_driver_api ds2484_driver_api = {
static DEVICE_API(w1, ds2484_driver_api) = {
.reset_bus = ds2484_reset_bus,
.read_bit = ds2484_read_bit,
.write_bit = ds2484_write_bit,
Expand Down
2 changes: 1 addition & 1 deletion drivers/w1/w1_ds2485.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static int w1_ds2485_init(const struct device *dev)
return w1_ds2477_85_init(dev);
}

static const struct w1_driver_api w1_ds2485_driver_api = {
static DEVICE_API(w1, w1_ds2485_driver_api) = {
.reset_bus = ds2477_85_reset_bus,
.read_bit = ds2477_85_read_bit,
.write_bit = ds2477_85_write_bit,
Expand Down
2 changes: 1 addition & 1 deletion drivers/w1/w1_max32.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ static int w1_max32_init(const struct device *dev)
return ret;
}

static const struct w1_driver_api w1_max32_driver_api = {
static DEVICE_API(w1, w1_max32_driver_api) = {
.reset_bus = api_reset_bus,
.read_bit = api_read_bit,
.write_bit = api_write_bit,
Expand Down
2 changes: 1 addition & 1 deletion drivers/w1/w1_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static int w1_vnd_configure(const struct device *dev,
return -ENOTSUP;
}

static const struct w1_driver_api w1_vnd_api = {
static DEVICE_API(w1, w1_vnd_api) = {
.reset_bus = w1_vnd_reset_bus,
.read_bit = w1_vnd_read_bit,
.write_bit = w1_vnd_write_bit,
Expand Down
2 changes: 1 addition & 1 deletion drivers/w1/w1_zephyr_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ static int w1_gpio_init(const struct device *dev)
return 0;
}

static const struct w1_driver_api w1_gpio_driver_api = {
static DEVICE_API(w1, w1_gpio_driver_api) = {
.reset_bus = w1_gpio_reset_bus,
.read_bit = w1_gpio_read_bit,
.write_bit = w1_gpio_write_bit,
Expand Down
2 changes: 1 addition & 1 deletion drivers/w1/w1_zephyr_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ static int w1_serial_init(const struct device *dev)
return 0;
}

static const struct w1_driver_api w1_serial_driver_api = {
static DEVICE_API(w1, w1_serial_driver_api) = {
.reset_bus = w1_serial_reset_bus,
.read_bit = w1_serial_read_bit,
.write_bit = w1_serial_write_bit,
Expand Down
Loading