Lines Matching refs:error

97 	int error;
115 error = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs));
116 if (error < 0)
117 return error;
120 error = i2c_transfer(client->adapter, msgs, 1);
121 if (error < 0)
122 return error;
128 error = i2c_transfer(client->adapter, msgs + 1, 1);
129 if (error < 0)
130 return error;
151 int error = 0;
161 error = ilitek_i2c_write_and_read(ts, NULL, 0, 0, buf, 64);
162 if (error) {
163 dev_err(dev, "get touch info failed, err:%d\n", error);
164 return error;
181 error = ilitek_i2c_write_and_read(ts, NULL, 0, 0,
183 if (error) {
185 count, error);
186 return error;
222 int error;
228 error = ts->ptl_cb_func[idx].func(ts, cmd, inbuf, outbuf);
229 if (error)
230 return error;
238 int error;
242 error = ilitek_i2c_write_and_read(ts, buf, 1, 5, outbuf, 3);
243 if (error)
244 return error;
255 int error;
259 error = ilitek_i2c_write_and_read(ts, buf, 1, 5, outbuf, 32);
260 if (error)
261 return error;
273 int error;
277 error = ilitek_i2c_write_and_read(ts, buf, 1, 5, outbuf, 8);
278 if (error)
279 return error;
289 int error;
293 error = ilitek_i2c_write_and_read(ts, buf, 1, 5, outbuf, 8);
294 if (error)
295 return error;
308 int error;
312 error = ilitek_i2c_write_and_read(ts, buf, 1, 5, outbuf, 15);
313 if (error)
314 return error;
329 int error;
333 error = ilitek_i2c_write_and_read(ts, buf, 1, 5, outbuf, 2);
334 if (error)
335 return error;
408 int error;
414 error = api_protocol_set_cmd(ts, GET_PTL_VER, NULL, outbuf);
415 if (error)
416 return error;
430 int error;
432 error = api_protocol_set_cmd(ts, GET_PTL_VER, NULL, outbuf);
433 if (error)
434 return error;
436 error = api_protocol_set_cmd(ts, GET_MCU_VER, NULL, outbuf);
437 if (error)
438 return error;
440 error = api_protocol_set_cmd(ts, GET_FW_VER, NULL, outbuf);
441 if (error)
442 return error;
445 error = api_protocol_set_cmd(ts, GET_SCRN_RES, NULL,
447 if (error)
448 return error;
451 error = api_protocol_set_cmd(ts, GET_TP_RES, NULL, outbuf);
452 if (error)
453 return error;
455 error = api_protocol_set_cmd(ts, GET_IC_MODE, NULL, outbuf);
456 if (error)
457 return error;
464 int error;
484 error = input_mt_init_slots(input, ts->max_tp,
486 if (error) {
487 dev_err(dev, "initialize MT slots failed, err:%d\n", error);
488 return error;
491 error = input_register_device(input);
492 if (error) {
493 dev_err(dev, "register input device failed, err:%d\n", error);
494 return error;
503 int error;
505 error = ilitek_process_and_report_v6(ts);
506 if (error < 0) {
507 dev_err(&ts->client->dev, "[%s] err:%d\n", __func__, error);
551 int error;
567 error = PTR_ERR(ts->reset_gpio);
568 dev_err(dev, "request gpiod failed: %d", error);
569 return error;
574 error = ilitek_protocol_init(ts);
575 if (error) {
576 dev_err(dev, "protocol init failed: %d", error);
577 return error;
580 error = ilitek_read_tp_info(ts, true);
581 if (error) {
582 dev_err(dev, "read tp info failed: %d", error);
583 return error;
586 error = ilitek_input_dev_init(dev, ts);
587 if (error) {
588 dev_err(dev, "input dev init failed: %d", error);
589 return error;
592 error = devm_request_threaded_irq(dev, ts->client->irq,
595 if (error) {
596 dev_err(dev, "request threaded irq failed: %d\n", error);
597 return error;
607 int error;
612 error = api_protocol_set_cmd(ts, SET_IC_SLEEP, NULL, NULL);
613 if (error)
614 return error;
624 int error;
627 error = api_protocol_set_cmd(ts, SET_IC_WAKE, NULL, NULL);
628 if (error)
629 return error;