aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/input/misc/max77693-haptic.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/input/misc/max77693-haptic.c b/drivers/input/misc/max77693-haptic.c
index 4524499ea72f..8dc43c1ebf0e 100644
--- a/drivers/input/misc/max77693-haptic.c
+++ b/drivers/input/misc/max77693-haptic.c
@@ -60,7 +60,6 @@ struct max77693_haptic {
60 unsigned int pwm_duty; 60 unsigned int pwm_duty;
61 enum max77693_haptic_motor_type type; 61 enum max77693_haptic_motor_type type;
62 enum max77693_haptic_pulse_mode mode; 62 enum max77693_haptic_pulse_mode mode;
63 enum max77693_haptic_pwm_divisor pwm_divisor;
64 63
65 struct work_struct work; 64 struct work_struct work;
66}; 65};
@@ -88,7 +87,7 @@ static int max77693_haptic_configure(struct max77693_haptic *haptic,
88 value = ((haptic->type << MAX77693_CONFIG2_MODE) | 87 value = ((haptic->type << MAX77693_CONFIG2_MODE) |
89 (enable << MAX77693_CONFIG2_MEN) | 88 (enable << MAX77693_CONFIG2_MEN) |
90 (haptic->mode << MAX77693_CONFIG2_HTYP) | 89 (haptic->mode << MAX77693_CONFIG2_HTYP) |
91 (haptic->pwm_divisor)); 90 MAX77693_HAPTIC_PWM_DIVISOR_128);
92 91
93 error = regmap_write(haptic->regmap_haptic, 92 error = regmap_write(haptic->regmap_haptic,
94 MAX77693_HAPTIC_REG_CONFIG2, value); 93 MAX77693_HAPTIC_REG_CONFIG2, value);
@@ -259,7 +258,6 @@ static int max77693_haptic_probe(struct platform_device *pdev)
259 haptic->dev = &pdev->dev; 258 haptic->dev = &pdev->dev;
260 haptic->type = MAX77693_HAPTIC_LRA; 259 haptic->type = MAX77693_HAPTIC_LRA;
261 haptic->mode = MAX77693_HAPTIC_EXTERNAL_MODE; 260 haptic->mode = MAX77693_HAPTIC_EXTERNAL_MODE;
262 haptic->pwm_divisor = MAX77693_HAPTIC_PWM_DIVISOR_128;
263 haptic->suspend_state = false; 261 haptic->suspend_state = false;
264 262
265 INIT_WORK(&haptic->work, max77693_haptic_play_work); 263 INIT_WORK(&haptic->work, max77693_haptic_play_work);