Lines Matching refs:error
72 int error; in max77693_haptic_set_duty_cycle() local
77 error = pwm_apply_might_sleep(haptic->pwm_dev, &state); in max77693_haptic_set_duty_cycle()
78 if (error) { in max77693_haptic_set_duty_cycle()
80 "failed to set pwm duty cycle: %d\n", error); in max77693_haptic_set_duty_cycle()
81 return error; in max77693_haptic_set_duty_cycle()
89 int error; in max77843_haptic_bias() local
94 error = regmap_update_bits(haptic->regmap_haptic, in max77843_haptic_bias()
98 if (error) { in max77843_haptic_bias()
100 str_enable_disable(on), error); in max77843_haptic_bias()
101 return error; in max77843_haptic_bias()
111 int error; in max77693_haptic_configure() local
138 error = regmap_write(haptic->regmap_haptic, in max77693_haptic_configure()
140 if (error) { in max77693_haptic_configure()
142 "failed to update haptic config: %d\n", error); in max77693_haptic_configure()
143 return error; in max77693_haptic_configure()
151 int error; in max77693_haptic_lowsys() local
156 error = regmap_update_bits(haptic->regmap_pmic, in max77693_haptic_lowsys()
160 if (error) { in max77693_haptic_lowsys()
161 dev_err(haptic->dev, "cannot update pmic regmap: %d\n", error); in max77693_haptic_lowsys()
162 return error; in max77693_haptic_lowsys()
171 int error; in max77693_haptic_enable() local
180 error = pwm_apply_might_sleep(haptic->pwm_dev, &state); in max77693_haptic_enable()
181 if (error) { in max77693_haptic_enable()
183 "failed to enable haptic pwm device: %d\n", error); in max77693_haptic_enable()
187 error = max77693_haptic_lowsys(haptic, true); in max77693_haptic_enable()
188 if (error) in max77693_haptic_enable()
191 error = max77693_haptic_configure(haptic, true); in max77693_haptic_enable()
192 if (error) in max77693_haptic_enable()
207 int error; in max77693_haptic_disable() local
212 error = max77693_haptic_configure(haptic, false); in max77693_haptic_disable()
213 if (error) in max77693_haptic_disable()
216 error = max77693_haptic_lowsys(haptic, false); in max77693_haptic_disable()
217 if (error) in max77693_haptic_disable()
271 int error; in max77693_haptic_open() local
273 error = max77843_haptic_bias(haptic, true); in max77693_haptic_open()
274 if (error) in max77693_haptic_open()
275 return error; in max77693_haptic_open()
277 error = regulator_enable(haptic->motor_reg); in max77693_haptic_open()
278 if (error) { in max77693_haptic_open()
280 "failed to enable regulator: %d\n", error); in max77693_haptic_open()
281 return error; in max77693_haptic_open()
290 int error; in max77693_haptic_close() local
295 error = regulator_disable(haptic->motor_reg); in max77693_haptic_close()
296 if (error) in max77693_haptic_close()
298 "failed to disable regulator: %d\n", error); in max77693_haptic_close()
307 int error; in max77693_haptic_probe() local
365 error = input_ff_create_memless(haptic->input_dev, NULL, in max77693_haptic_probe()
367 if (error) { in max77693_haptic_probe()
369 return error; in max77693_haptic_probe()
372 error = input_register_device(haptic->input_dev); in max77693_haptic_probe()
373 if (error) { in max77693_haptic_probe()
375 return error; in max77693_haptic_probe()