Lines Matching refs:error

41 	int error;  in regulator_haptic_toggle()  local
45 error = on ? regulator_enable(haptic->regulator) : in regulator_haptic_toggle()
47 if (error) { in regulator_haptic_toggle()
50 on ? "on" : "off", error); in regulator_haptic_toggle()
51 return error; in regulator_haptic_toggle()
65 int error; in regulator_haptic_set_voltage() local
70 error = regulator_set_voltage(haptic->regulator, in regulator_haptic_set_voltage()
73 if (error) { in regulator_haptic_set_voltage()
75 intensity + haptic->min_volt, error); in regulator_haptic_set_voltage()
76 return error; in regulator_haptic_set_voltage()
123 int error; in regulator_haptic_parse_dt() local
131 error = of_property_read_u32(node, "max-microvolt", &haptic->max_volt); in regulator_haptic_parse_dt()
132 if (error) { in regulator_haptic_parse_dt()
134 return error; in regulator_haptic_parse_dt()
137 error = of_property_read_u32(node, "min-microvolt", &haptic->min_volt); in regulator_haptic_parse_dt()
138 if (error) { in regulator_haptic_parse_dt()
140 return error; in regulator_haptic_parse_dt()
151 int error; in regulator_haptic_probe() local
166 error = regulator_haptic_parse_dt(&pdev->dev, haptic); in regulator_haptic_probe()
167 if (error) in regulator_haptic_probe()
168 return error; in regulator_haptic_probe()
191 error = input_ff_create_memless(input_dev, NULL, in regulator_haptic_probe()
193 if (error) { in regulator_haptic_probe()
195 return error; in regulator_haptic_probe()
198 error = input_register_device(haptic->input_dev); in regulator_haptic_probe()
199 if (error) { in regulator_haptic_probe()
201 return error; in regulator_haptic_probe()
211 int error; in regulator_haptic_suspend() local
213 error = mutex_lock_interruptible(&haptic->mutex); in regulator_haptic_suspend()
214 if (error) in regulator_haptic_suspend()
215 return error; in regulator_haptic_suspend()