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
|
@ -438,8 +438,8 @@ static inline bool uart_npcx_device_is_transmitting(const struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static inline int uart_npcx_pm_control(const struct device *dev,
|
||||
enum pm_device_action action)
|
||||
static inline int uart_npcx_pm_action(const struct device *dev,
|
||||
enum pm_device_action action)
|
||||
{
|
||||
/* If next device power state is SUSPEND power state */
|
||||
switch (action) {
|
||||
|
@ -504,7 +504,7 @@ static inline int uart_npcx_pm_control(const struct device *dev,
|
|||
\
|
||||
DEVICE_DT_INST_DEFINE(inst, \
|
||||
&uart_npcx_init, \
|
||||
uart_npcx_pm_control, \
|
||||
uart_npcx_pm_action, \
|
||||
&uart_npcx_data_##inst, &uart_npcx_cfg_##inst, \
|
||||
PRE_KERNEL_1, CONFIG_SERIAL_INIT_PRIORITY, \
|
||||
&uart_npcx_driver_api); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue