drivers: led: 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
5f4fedc3c3
commit
40e9cb675c
6 changed files with 7 additions and 7 deletions
|
@ -473,7 +473,7 @@ static const struct led_driver_api ht16k33_leds_api = {
|
|||
\
|
||||
static struct ht16k33_data ht16k33_##id##_data; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(id, &ht16k33_init, device_pm_control_nop, \
|
||||
DEVICE_DT_INST_DEFINE(id, &ht16k33_init, NULL, \
|
||||
&ht16k33_##id##_data, \
|
||||
&ht16k33_##id##_cfg, POST_KERNEL, \
|
||||
CONFIG_LED_INIT_PRIORITY, &ht16k33_leds_api)
|
||||
|
@ -493,7 +493,7 @@ static const struct led_driver_api ht16k33_leds_api = {
|
|||
\
|
||||
static struct ht16k33_data ht16k33_##id##_data; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(id, &ht16k33_init, device_pm_control_nop, \
|
||||
DEVICE_DT_INST_DEFINE(id, &ht16k33_init, NULL, \
|
||||
&ht16k33_##id##_data, \
|
||||
&ht16k33_##id##_cfg, POST_KERNEL, \
|
||||
CONFIG_LED_INIT_PRIORITY, &ht16k33_leds_api)
|
||||
|
|
|
@ -99,7 +99,7 @@ static const struct led_gpio_config led_gpio_config_##i = { \
|
|||
.led = gpio_dt_spec_##i, \
|
||||
}; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(i, &led_gpio_init, device_pm_control_nop, \
|
||||
DEVICE_DT_INST_DEFINE(i, &led_gpio_init, NULL, \
|
||||
NULL, &led_gpio_config_##i, \
|
||||
POST_KERNEL, CONFIG_LED_INIT_PRIORITY, \
|
||||
&led_gpio_api);
|
||||
|
|
|
@ -279,7 +279,7 @@ static const struct led_driver_api lp3943_led_api = {
|
|||
.off = lp3943_led_off,
|
||||
};
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, &lp3943_led_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(0, &lp3943_led_init, NULL,
|
||||
&lp3943_led_data,
|
||||
NULL, POST_KERNEL, CONFIG_LED_INIT_PRIORITY,
|
||||
&lp3943_led_api);
|
||||
|
|
|
@ -278,7 +278,7 @@ static struct lp503x_data lp503x_data_##id = { \
|
|||
\
|
||||
DEVICE_DT_INST_DEFINE(id, \
|
||||
&lp503x_init, \
|
||||
device_pm_control_nop, \
|
||||
NULL, \
|
||||
&lp503x_data_##id, \
|
||||
&lp503x_config_##id, \
|
||||
POST_KERNEL, CONFIG_LED_INIT_PRIORITY, \
|
||||
|
|
|
@ -953,7 +953,7 @@ static const struct led_driver_api lp5562_led_api = {
|
|||
.off = lp5562_led_off,
|
||||
};
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, &lp5562_led_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(0, &lp5562_led_init, NULL,
|
||||
&lp5562_led_data,
|
||||
NULL, POST_KERNEL, CONFIG_LED_INIT_PRIORITY,
|
||||
&lp5562_led_api);
|
||||
|
|
|
@ -203,7 +203,7 @@ static const struct led_driver_api pca9633_led_api = {
|
|||
.off = pca9633_led_off,
|
||||
};
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, &pca9633_led_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(0, &pca9633_led_init, NULL,
|
||||
&pca9633_led_data,
|
||||
NULL, POST_KERNEL, CONFIG_LED_INIT_PRIORITY,
|
||||
&pca9633_led_api);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue