power: device: void *context -> uint32_t *state

The context parameter used across device power management is
actually the power state. Just use it and avoid a lot of
unnecessary casts.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2021-03-31 23:06:33 -07:00 committed by Anas Nashif
commit 7eba310220
30 changed files with 111 additions and 109 deletions

View file

@ -32,7 +32,7 @@ int __weak sys_clock_driver_init(const struct device *dev)
int __weak sys_clock_device_ctrl(const struct device *dev,
uint32_t ctrl_command,
void *context, pm_device_cb cb, void *arg)
uint32_t *context, pm_device_cb cb, void *arg)
{
return -ENOTSUP;
}