drivers: led_strip: remove usage of device_pm_control_nop
device_pm_control_nop is now deprecated in favour of NULL. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
40e9cb675c
commit
233fbf44c9
|
@ -121,6 +121,6 @@ static const struct led_strip_driver_api apa102_api = {
|
|||
.update_channels = apa102_update_channels,
|
||||
};
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, apa102_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(0, apa102_init, NULL,
|
||||
&apa102_data_0, NULL, POST_KERNEL,
|
||||
CONFIG_LED_STRIP_INIT_PRIORITY, &apa102_api);
|
||||
|
|
|
@ -154,7 +154,7 @@ static const struct led_strip_driver_api lpd880x_strip_api = {
|
|||
.update_channels = lpd880x_strip_update_channels,
|
||||
};
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, lpd880x_strip_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(0, lpd880x_strip_init, NULL,
|
||||
&lpd880x_strip_data,
|
||||
NULL, POST_KERNEL, CONFIG_LED_STRIP_INIT_PRIORITY,
|
||||
&lpd880x_strip_api);
|
||||
|
|
|
@ -236,7 +236,7 @@ static const struct led_strip_driver_api ws2812_gpio_api = {
|
|||
\
|
||||
DEVICE_DT_INST_DEFINE(idx, \
|
||||
ws2812_gpio_##idx##_init, \
|
||||
device_pm_control_nop, \
|
||||
NULL, \
|
||||
&ws2812_gpio_##idx##_data, \
|
||||
&ws2812_gpio_##idx##_cfg, POST_KERNEL, \
|
||||
CONFIG_LED_STRIP_INIT_PRIORITY, \
|
||||
|
|
|
@ -223,7 +223,7 @@ static const struct led_strip_driver_api ws2812_spi_api = {
|
|||
\
|
||||
DEVICE_DT_INST_DEFINE(idx, \
|
||||
ws2812_spi_##idx##_init, \
|
||||
device_pm_control_nop, \
|
||||
NULL, \
|
||||
&ws2812_spi_##idx##_data, \
|
||||
&ws2812_spi_##idx##_cfg, \
|
||||
POST_KERNEL, \
|
||||
|
|
Loading…
Reference in a new issue