drivers: use common PM action callback naming
The PM callback is no longer referenced as "pm_control" but "pm_action_cb", so reflect this new naming on the callbacks. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
01430da395
commit
4baf1e01ff
35 changed files with 115 additions and 110 deletions
|
@ -494,8 +494,8 @@ static int st7735r_init(const struct device *dev)
|
|||
}
|
||||
|
||||
#ifdef CONFIG_PM_DEVICE
|
||||
static int st7735r_pm_control(const struct device *dev,
|
||||
enum pm_device_action action)
|
||||
static int st7735r_pm_action(const struct device *dev,
|
||||
enum pm_device_action action)
|
||||
{
|
||||
int ret = 0;
|
||||
struct st7735r_data *data = (struct st7735r_data *)dev->data;
|
||||
|
@ -573,7 +573,7 @@ static const struct display_driver_api st7735r_api = {
|
|||
.x_offset = DT_INST_PROP(inst, x_offset), \
|
||||
.y_offset = DT_INST_PROP(inst, y_offset), \
|
||||
}; \
|
||||
DEVICE_DT_INST_DEFINE(inst, st7735r_init, st7735r_pm_control, \
|
||||
DEVICE_DT_INST_DEFINE(inst, st7735r_init, st7735r_pm_action, \
|
||||
&st7735r_data_ ## inst, &st7735r_config_ ## inst, \
|
||||
POST_KERNEL, CONFIG_DISPLAY_INIT_PRIORITY, \
|
||||
&st7735r_api);
|
||||
|
|
|
@ -396,8 +396,8 @@ static int st7789v_init(const struct device *dev)
|
|||
}
|
||||
|
||||
#ifdef CONFIG_PM_DEVICE
|
||||
static int st7789v_pm_control(const struct device *dev,
|
||||
enum pm_device_action action)
|
||||
static int st7789v_pm_action(const struct device *dev,
|
||||
enum pm_device_action action)
|
||||
{
|
||||
struct st7789v_data *data = (struct st7789v_data *)dev->data;
|
||||
int ret = 0;
|
||||
|
@ -439,5 +439,5 @@ static struct st7789v_data st7789v_data = {
|
|||
};
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, &st7789v_init,
|
||||
st7789v_pm_control, &st7789v_data, NULL, POST_KERNEL,
|
||||
st7789v_pm_action, &st7789v_data, NULL, POST_KERNEL,
|
||||
CONFIG_DISPLAY_INIT_PRIORITY, &st7789v_api);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue