Lines Matching defs:error
38 int error;
42 error = on ? regulator_enable(haptic->regulator) :
44 if (error) {
47 on ? "on" : "off", error);
48 return error;
62 int error;
67 error = regulator_set_voltage(haptic->regulator,
70 if (error) {
72 intensity + haptic->min_volt, error);
73 return error;
120 int error;
128 error = of_property_read_u32(node, "max-microvolt", &haptic->max_volt);
129 if (error) {
131 return error;
134 error = of_property_read_u32(node, "min-microvolt", &haptic->min_volt);
135 if (error) {
137 return error;
148 int error;
163 error = regulator_haptic_parse_dt(&pdev->dev, haptic);
164 if (error)
165 return error;
188 error = input_ff_create_memless(input_dev, NULL,
190 if (error) {
192 return error;
195 error = input_register_device(haptic->input_dev);
196 if (error) {
198 return error;
208 int error;
210 error = mutex_lock_interruptible(&haptic->mutex);
211 if (error)
212 return error;