pm: rename device_pm_state_str to pm_device_state_str
Prefix all device PM functions/data structures with pm. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
d31a9be27c
commit
570b43a70e
3 changed files with 4 additions and 4 deletions
|
@ -115,7 +115,7 @@ struct pm_device {
|
|||
*
|
||||
* @param state State id which name should be returned
|
||||
*/
|
||||
const char *device_pm_state_str(uint32_t state);
|
||||
const char *pm_device_state_str(uint32_t state);
|
||||
|
||||
/** Alias for legacy use of device_pm_control_nop */
|
||||
#define device_pm_control_nop __DEPRECATED_MACRO NULL
|
||||
|
|
|
@ -75,7 +75,7 @@ static int _pm_devices(uint32_t state)
|
|||
rc = device_set_power_state(dev, state, NULL, NULL);
|
||||
if ((rc != -ENOTSUP) && (rc != 0)) {
|
||||
LOG_DBG("%s did not enter %s state: %d",
|
||||
dev->name, device_pm_state_str(state), rc);
|
||||
dev->name, pm_device_state_str(state), rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
@ -165,7 +165,7 @@ void pm_create_device_list(void)
|
|||
}
|
||||
#endif /* defined(CONFIG_PM) */
|
||||
|
||||
const char *device_pm_state_str(uint32_t state)
|
||||
const char *pm_device_state_str(uint32_t state)
|
||||
{
|
||||
switch (state) {
|
||||
case PM_DEVICE_ACTIVE_STATE:
|
||||
|
|
|
@ -150,7 +150,7 @@ static int cmd_device_list(const struct shell *shell,
|
|||
int err = device_get_power_state(dev, &st);
|
||||
|
||||
if (!err) {
|
||||
state = device_pm_state_str(st);
|
||||
state = pm_device_state_str(st);
|
||||
}
|
||||
#endif /* CONFIG_PM_DEVICE */
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue