pm: rename PM_DEVICE_GET/SET_POWER_STATE to PM_DEVICE_STATE_GET/SET

Adjust name to be consistent with device PM naming conventions.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2021-05-03 18:32:53 +02:00 committed by Anas Nashif
commit 56f1a8ce98
36 changed files with 72 additions and 72 deletions

View file

@ -526,7 +526,7 @@ static int st7735r_pm_control(const struct device *dev, uint32_t ctrl_command,
struct st7735r_data *data = (struct st7735r_data *)dev->data;
switch (ctrl_command) {
case PM_DEVICE_SET_POWER_STATE:
case PM_DEVICE_STATE_SET:
if (*((uint32_t *)context) == PM_DEVICE_ACTIVE_STATE) {
ret = st7735r_exit_sleep(data);
if (ret < 0) {
@ -543,7 +543,7 @@ static int st7735r_pm_control(const struct device *dev, uint32_t ctrl_command,
break;
case PM_DEVICE_GET_POWER_STATE:
case PM_DEVICE_STATE_GET:
*((uint32_t *)context) = data->pm_state;
break;

View file

@ -415,7 +415,7 @@ static int st7789v_pm_control(const struct device *dev, uint32_t ctrl_command,
struct st7789v_data *data = (struct st7789v_data *)dev->data;
switch (ctrl_command) {
case PM_DEVICE_SET_POWER_STATE:
case PM_DEVICE_STATE_SET:
if (*((uint32_t *)context) == PM_DEVICE_ACTIVE_STATE) {
st7789v_exit_sleep(data);
data->pm_state = PM_DEVICE_ACTIVE_STATE;
@ -426,7 +426,7 @@ static int st7789v_pm_control(const struct device *dev, uint32_t ctrl_command,
ret = 0;
}
break;
case PM_DEVICE_GET_POWER_STATE:
case PM_DEVICE_STATE_GET:
*((uint32_t *)context) = data->pm_state;
break;
default: