Skip to content

Commit a0eb112

Browse files
pdgendtkartben
authored andcommitted
drivers: Move device driver APIs into iterable sections
These device driver APIs were merged after the DEVICE_API macro was introduced. Cleanup these leftover drivers. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent fbdf6e3 commit a0eb112

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

drivers/gpio/gpio_ite_it8801.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ static int gpio_it8801_pin_interrupt_configure(const struct device *dev, gpio_pi
415415
return ret;
416416
}
417417

418-
static const struct gpio_driver_api gpio_it8801_driver_api = {
418+
static DEVICE_API(gpio, gpio_it8801_driver_api) = {
419419
.pin_configure = gpio_it8801_configure,
420420
#ifdef CONFIG_GPIO_GET_CONFIG
421421
.pin_get_config = gpio_it8801_get_config,

drivers/gpio/gpio_renesas_rz.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ static int gpio_rz_int_init(const struct device *dev)
409409
}
410410
#endif
411411

412-
static const struct gpio_driver_api gpio_rz_driver_api = {
412+
static DEVICE_API(gpio, gpio_rz_driver_api) = {
413413
.pin_configure = gpio_rz_pin_configure,
414414
#ifdef CONFIG_GPIO_GET_CONFIG
415415
.pin_get_config = gpio_rz_pin_get_config,

drivers/pwm/pwm_ite_it8801.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ static int pwm_it8801_init(const struct device *dev)
148148
return 0;
149149
}
150150

151-
static const struct pwm_driver_api pwm_it8801_api = {
151+
static DEVICE_API(pwm, pwm_it8801_api) = {
152152
.set_cycles = pwm_it8801_set_cycles,
153153
.get_cycles_per_sec = pwm_it8801_get_cycles_per_sec,
154154
};

drivers/serial/uart_renesas_rz_scif.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ static int uart_rz_scif_config_get(const struct device *dev, struct uart_config
197197

198198
#endif /* CONFIG_UART_USE_RUNTIME_CONFIGURE */
199199

200-
static const struct uart_driver_api uart_rz_scif_driver_api = {
200+
static DEVICE_API(uart, uart_rz_scif_driver_api) = {
201201
.poll_in = uart_rz_scif_poll_in,
202202
.poll_out = uart_rz_scif_poll_out,
203203
.err_check = uart_rz_scif_err_check,

0 commit comments

Comments
 (0)