drivers: misc: drv8846: Remove references to lpm_disable_for_dev

Change-Id: Ia8160e922cfa338b79182f4278fd122eb2721f37
This commit is contained in:
Sebastiano Barezzi
2023-03-05 15:28:03 +01:00
parent 159043eddf
commit f515aa72bb

View File

@@ -45,8 +45,6 @@
#include <linux/debugfs.h>
#include <linux/drv8846.h>
#define EVENT_FCAM 0x2
extern void lpm_disable_for_dev(bool on, char event_dev);
static DECLARE_WAIT_QUEUE_HEAD(poll_wait_queue);
struct pwm_setting {
@@ -110,7 +108,6 @@ static int __drv8846_config_pwm(struct drv8846_soc_ctrl *c_ctrl,
gpio_direction_output(c_ctrl->gpio_sleep, 0);
atomic_set(&c_ctrl->move_done, 1);
wake_up(&poll_wait_queue);
lpm_disable_for_dev(false, EVENT_FCAM);
} else {
gpio_direction_output(c_ctrl->gpio_sleep, 1);
}
@@ -176,7 +173,6 @@ void drv8846_move(struct drv8846_soc_ctrl *c_ctrl)
c_ctrl->pwm_setting.pre_period_ns = c_ctrl->pdata.speed_period;
c_ctrl->pwm_setting.duty_ns = c_ctrl->pdata.speed_period >> 1;
lpm_disable_for_dev(true, EVENT_FCAM);
hrtimer_start(&c_ctrl->pwm_timer,
ktime_set(c_ctrl->pdata.speed_duration / MSEC_PER_SEC,
(c_ctrl->pdata.speed_duration % MSEC_PER_SEC) *
@@ -739,7 +735,6 @@ static int drv8846_remove(struct platform_device *pdev)
cancel_work_sync(&c_ctrl->pwm_apply_work);
hrtimer_cancel(&c_ctrl->pwm_timer);
lpm_disable_for_dev(false, EVENT_FCAM);
mutex_destroy(&c_ctrl->motor_mutex);
devm_pwm_put(&c_ctrl->pdev->dev, c_ctrl->pwm_dev);