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:
Gerard Marull-Paretas 2021-11-02 16:19:41 +01:00 committed by Anas Nashif
commit 4baf1e01ff
35 changed files with 115 additions and 110 deletions

View file

@ -217,7 +217,8 @@ static int ina219_channel_get(const struct device *dev,
}
#ifdef CONFIG_PM_DEVICE
static int ina219_pm_ctrl(const struct device *dev, enum pm_device_action action)
static int ina219_pm_action(const struct device *dev,
enum pm_device_action action)
{
uint16_t reg_val;
@ -303,7 +304,7 @@ static const struct sensor_driver_api ina219_api = {
\
DEVICE_DT_INST_DEFINE(n, \
ina219_init, \
ina219_pm_ctrl,\
ina219_pm_action, \
&ina219_data_##n, \
&ina219_config_##n, \
POST_KERNEL, \