Lines Matching refs:error

303 	int error;  in pixcir_start()  local
306 error = pixcir_set_int_mode(ts, PIXCIR_INT_LEVEL_TOUCH, 0); in pixcir_start()
307 if (error) { in pixcir_start()
308 dev_err(dev, "Failed to set interrupt mode: %d\n", error); in pixcir_start()
309 return error; in pixcir_start()
316 error = pixcir_int_enable(ts, true); in pixcir_start()
317 if (error) { in pixcir_start()
319 error); in pixcir_start()
320 return error; in pixcir_start()
328 int error; in pixcir_stop() local
331 error = pixcir_int_enable(ts, false); in pixcir_stop()
332 if (error) { in pixcir_stop()
335 error); in pixcir_stop()
336 return error; in pixcir_stop()
455 int error; in pixcir_i2c_ts_probe() local
464 error = pixcir_parse_dt(dev, tsdata); in pixcir_i2c_ts_probe()
465 if (error) in pixcir_i2c_ts_probe()
466 return error; in pixcir_i2c_ts_probe()
513 error = input_mt_init_slots(input, tsdata->max_fingers, in pixcir_i2c_ts_probe()
515 if (error) { in pixcir_i2c_ts_probe()
517 return error; in pixcir_i2c_ts_probe()
524 error = PTR_ERR(tsdata->gpio_attb); in pixcir_i2c_ts_probe()
525 dev_err(dev, "Failed to request ATTB gpio: %d\n", error); in pixcir_i2c_ts_probe()
526 return error; in pixcir_i2c_ts_probe()
532 error = PTR_ERR(tsdata->gpio_reset); in pixcir_i2c_ts_probe()
533 dev_err(dev, "Failed to request RESET gpio: %d\n", error); in pixcir_i2c_ts_probe()
534 return error; in pixcir_i2c_ts_probe()
537 error = devm_request_threaded_irq(dev, client->irq, NULL, pixcir_ts_isr, in pixcir_i2c_ts_probe()
540 if (error) { in pixcir_i2c_ts_probe()
542 return error; in pixcir_i2c_ts_probe()
548 error = pixcir_set_power_mode(tsdata, PIXCIR_POWER_IDLE); in pixcir_i2c_ts_probe()
549 if (error) { in pixcir_i2c_ts_probe()
551 return error; in pixcir_i2c_ts_probe()
555 error = pixcir_stop(tsdata); in pixcir_i2c_ts_probe()
556 if (error) in pixcir_i2c_ts_probe()
557 return error; in pixcir_i2c_ts_probe()
559 error = input_register_device(input); in pixcir_i2c_ts_probe()
560 if (error) in pixcir_i2c_ts_probe()
561 return error; in pixcir_i2c_ts_probe()