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/dac/dac_ad559x.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static int dac_ad559x_write_value(const struct device *dev, uint8_t channel, uin
}
}

static const struct dac_driver_api dac_ad559x_api = {
static DEVICE_API(dac, dac_ad559x_api) = {
.channel_setup = dac_ad559x_channel_setup,
.write_value = dac_ad559x_write_value,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/dac/dac_ad569x.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ static int ad569x_init(const struct device *dev)
return 0;
}

static const struct dac_driver_api ad569x_driver_api = {
static DEVICE_API(dac, ad569x_driver_api) = {
.channel_setup = ad569x_channel_setup,
.write_value = ad569x_write_value,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/dac/dac_ad56xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ static int ad56xx_init(const struct device *dev)
return 0;
}

static const struct dac_driver_api ad56xx_driver_api = {
static DEVICE_API(dac, ad56xx_driver_api) = {
.channel_setup = ad56xx_channel_setup,
.write_value = ad56xx_write_value,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/dac/dac_dacx0501.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ static int dacx0501_init(const struct device *dev)
return 0;
}

static const struct dac_driver_api dacx0501_driver_api = {
static DEVICE_API(dac, dacx0501_driver_api) = {
.channel_setup = dacx0501_channel_setup,
.write_value = dacx0501_write_value,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/dac/dac_dacx0508.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ static int dacx0508_init(const struct device *dev)
return 0;
}

static const struct dac_driver_api dacx0508_driver_api = {
static DEVICE_API(dac, dacx0508_driver_api) = {
.channel_setup = dacx0508_channel_setup,
.write_value = dacx0508_write_value,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/dac/dac_dacx3608.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ static int dacx3608_init(const struct device *dev)
return 0;
}

static const struct dac_driver_api dacx3608_driver_api = {
static DEVICE_API(dac, dacx3608_driver_api) = {
.channel_setup = dacx3608_channel_setup,
.write_value = dacx3608_write_value,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/dac/dac_esp32.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static int dac_esp32_init(const struct device *dev)
return 0;
}

static const struct dac_driver_api dac_esp32_driver_api = {
static DEVICE_API(dac, dac_esp32_driver_api) = {
.channel_setup = dac_esp32_channel_setup,
.write_value = dac_esp32_write_value
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/dac/dac_gd32.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ static int dac_gd32_write_value(const struct device *dev,
return 0;
}

struct dac_driver_api dac_gd32_driver_api = {
DEVICE_API(dac, dac_gd32_driver_api) = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that we touch this line, should we make it static as well?

.channel_setup = dac_gd32_channel_setup,
.write_value = dac_gd32_write_value
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/dac/dac_ltc166x.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static int ltc166x_init(const struct device *dev)
return 0;
}

static const struct dac_driver_api ltc166x_driver_api = {
static DEVICE_API(dac, ltc166x_driver_api) = {
.channel_setup = ltc166x_channel_setup,
.write_value = ltc166x_write_value,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/dac/dac_mcp4725.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ static int dac_mcp4725_init(const struct device *dev)
return 0;
}

static const struct dac_driver_api mcp4725_driver_api = {
static DEVICE_API(dac, mcp4725_driver_api) = {
.channel_setup = mcp4725_channel_setup,
.write_value = mcp4725_write_value,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/dac/dac_mcp4728.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static int dac_mcp4728_init(const struct device *dev)
return 0;
}

static const struct dac_driver_api mcp4728_driver_api = {
static DEVICE_API(dac, mcp4728_driver_api) = {
.channel_setup = mcp4728_channel_setup,
.write_value = mcp4728_write_value,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/dac/dac_mcux_dac.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ static int mcux_dac_write_value(const struct device *dev, uint8_t channel,
return 0;
}

static const struct dac_driver_api mcux_dac_driver_api = {
static DEVICE_API(dac, mcux_dac_driver_api) = {
.channel_setup = mcux_dac_channel_setup,
.write_value = mcux_dac_write_value,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/dac/dac_mcux_dac32.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static int mcux_dac32_init(const struct device *dev)
return pinctrl_apply_state(config->pincfg, PINCTRL_STATE_DEFAULT);
}

static const struct dac_driver_api mcux_dac32_driver_api = {
static DEVICE_API(dac, mcux_dac32_driver_api) = {
.channel_setup = mcux_dac32_channel_setup,
.write_value = mcux_dac32_write_value,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/dac/dac_mcux_gau.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static int nxp_gau_dac_write_value(const struct device *dev,
return 0;
};

static const struct dac_driver_api nxp_gau_dac_driver_api = {
static DEVICE_API(dac, nxp_gau_dac_driver_api) = {
.channel_setup = nxp_gau_dac_channel_setup,
.write_value = nxp_gau_dac_write_value,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/dac/dac_mcux_lpdac.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static int mcux_lpdac_init(const struct device *dev)
return 0;
}

static const struct dac_driver_api mcux_lpdac_driver_api = {
static DEVICE_API(dac, mcux_lpdac_driver_api) = {
.channel_setup = mcux_lpdac_channel_setup,
.write_value = mcux_lpdac_write_value,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/dac/dac_sam.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ static int dac_sam_init(const struct device *dev)
return 0;
}

static const struct dac_driver_api dac_sam_driver_api = {
static DEVICE_API(dac, dac_sam_driver_api) = {
.channel_setup = dac_sam_channel_setup,
.write_value = dac_sam_write_value,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/dac/dac_sam0.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static int dac_sam0_init(const struct device *dev)
return 0;
}

static const struct dac_driver_api api_sam0_driver_api = {
static DEVICE_API(dac, api_sam0_driver_api) = {
.channel_setup = dac_sam0_channel_setup,
.write_value = dac_sam0_write_value
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/dac/dac_stm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ static int dac_stm32_init(const struct device *dev)
return 0;
}

static const struct dac_driver_api api_stm32_driver_api = {
static DEVICE_API(dac, api_stm32_driver_api) = {
.channel_setup = dac_stm32_channel_setup,
.write_value = dac_stm32_write_value
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/dac/dac_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ int vnd_dac_write_value(const struct device *dev, uint8_t channel, uint32_t valu
return -ENOTSUP;
}

static const struct dac_driver_api vnd_dac_driver_api = {
static DEVICE_API(dac, vnd_dac_driver_api) = {
.channel_setup = vnd_dac_channel_setup,
.write_value = vnd_dac_write_value,
};
Expand Down
Loading