Searched refs:pwm_dev (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/input/misc/
H A Dmax77693-haptic.c53 struct pwm_device *pwm_dev; member in struct:max77693_haptic
69 int delta = (haptic->pwm_dev->period + haptic->pwm_duty) / 2; max77693_haptic_set_duty_cycle()
72 error = pwm_config(haptic->pwm_dev, delta, haptic->pwm_dev->period); max77693_haptic_set_duty_cycle()
126 error = pwm_enable(haptic->pwm_dev); max77693_haptic_enable()
148 pwm_disable(haptic->pwm_dev); max77693_haptic_enable()
166 pwm_disable(haptic->pwm_dev); max77693_haptic_disable()
208 period_mag_multi = (u64)haptic->pwm_dev->period * haptic->magnitude; max77693_haptic_play_effect()
267 haptic->pwm_dev = devm_pwm_get(&pdev->dev, NULL); max77693_haptic_probe()
268 if (IS_ERR(haptic->pwm_dev)) { max77693_haptic_probe()
270 return PTR_ERR(haptic->pwm_dev); max77693_haptic_probe()
H A Dmax77843-haptic.c44 struct pwm_device *pwm_dev; member in struct:max77843_haptic
61 int delta = (haptic->pwm_dev->period + haptic->pwm_duty) / 2; max77843_haptic_set_duty_cycle()
64 error = pwm_config(haptic->pwm_dev, delta, haptic->pwm_dev->period); max77843_haptic_set_duty_cycle()
117 error = pwm_enable(haptic->pwm_dev); max77843_haptic_enable()
133 pwm_disable(haptic->pwm_dev); max77843_haptic_enable()
149 pwm_disable(haptic->pwm_dev); max77843_haptic_disable()
200 period_mag_multi = (u64)haptic->pwm_dev->period * haptic->magnitude; max77843_haptic_play_effect()
262 haptic->pwm_dev = devm_pwm_get(&pdev->dev, NULL); max77843_haptic_probe()
263 if (IS_ERR(haptic->pwm_dev)) { max77843_haptic_probe()
265 return PTR_ERR(haptic->pwm_dev); max77843_haptic_probe()

Completed in 80 milliseconds