Lines Matching refs:pwm_dir
29 struct pwm_device *pwm_dir; member
65 if (vibrator->pwm_dir) { in pwm_vibrator_start()
66 pwm_get_state(vibrator->pwm_dir, &state); in pwm_vibrator_start()
70 err = pwm_apply_might_sleep(vibrator->pwm_dir, &state); in pwm_vibrator_start()
83 if (vibrator->pwm_dir) in pwm_vibrator_stop()
84 pwm_disable(vibrator->pwm_dir); in pwm_vibrator_stop()
170 vibrator->pwm_dir = devm_pwm_get(&pdev->dev, "direction"); in pwm_vibrator_probe()
171 err = PTR_ERR_OR_ZERO(vibrator->pwm_dir); in pwm_vibrator_probe()
175 pwm_init_state(vibrator->pwm_dir, &state); in pwm_vibrator_probe()
177 err = pwm_apply_might_sleep(vibrator->pwm_dir, &state); in pwm_vibrator_probe()
185 pwm_get_period(vibrator->pwm_dir) / 2; in pwm_vibrator_probe()
192 vibrator->pwm_dir = NULL; in pwm_vibrator_probe()