pm: remove callback from control function

The callback is not used anymore, so just delete it from the pm_control
callback signature.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2021-06-04 12:30:35 +02:00 committed by Christopher Friedt
commit 26ad8376bd
50 changed files with 96 additions and 163 deletions

View file

@ -520,8 +520,7 @@ static int st7735r_enter_sleep(struct st7735r_data *data)
}
static int st7735r_pm_control(const struct device *dev, uint32_t ctrl_command,
enum pm_device_state *state,
pm_device_cb cb, void *arg)
enum pm_device_state *state)
{
int ret = 0;
struct st7735r_data *data = (struct st7735r_data *)dev->data;

View file

@ -409,7 +409,7 @@ static void st7789v_enter_sleep(struct st7789v_data *data)
}
static int st7789v_pm_control(const struct device *dev, uint32_t ctrl_command,
enum pm_device_state *state, pm_device_cb cb, void *arg)
enum pm_device_state *state)
{
int ret = 0;
struct st7789v_data *data = (struct st7789v_data *)dev->data;