Skip to content

Commit d4139d3

Browse files
pdgendtdanieldegrasse
authored andcommitted
drivers: pwm: Place device APIs in linker sections
Use DEVICE_API macro to place driver API instances into a linker section. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
1 parent 70ee055 commit d4139d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pwm/pwm_wch_gptm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static int pwm_wch_gptm_get_cycles_per_sec(const struct device *dev, uint32_t ch
131131
return 0;
132132
}
133133

134-
static const struct pwm_driver_api pwm_wch_gptm_driver_api = {
134+
static DEVICE_API(pwm, pwm_wch_gptm_driver_api) = {
135135
.set_cycles = pwm_wch_gptm_set_cycles,
136136
.get_cycles_per_sec = pwm_wch_gptm_get_cycles_per_sec,
137137
};

0 commit comments

Comments
 (0)