Lines Matching refs:err

135 	int err;  in cst3xx_i2c_read_register()  local
142 err = ret < 0 ? ret : -EIO; in cst3xx_i2c_read_register()
144 len, reg, err, ret); in cst3xx_i2c_read_register()
146 return err; in cst3xx_i2c_read_register()
152 int err; in cst3xx_firmware_info() local
160 err = cst3xx_i2c_write(client, buf, 2); in cst3xx_firmware_info()
161 if (err) in cst3xx_firmware_info()
162 return err; in cst3xx_firmware_info()
170 err = cst3xx_i2c_read_register(client, CST3XX_FIRMWARE_CHK_CODE_REG, in cst3xx_firmware_info()
172 if (err) in cst3xx_firmware_info()
173 return err; in cst3xx_firmware_info()
185 err = cst3xx_i2c_read_register(client, CST3XX_FIRMWARE_VERSION_REG, in cst3xx_firmware_info()
187 if (err) in cst3xx_firmware_info()
188 return err; in cst3xx_firmware_info()
200 err = cst3xx_i2c_write(client, buf, 2); in cst3xx_firmware_info()
201 if (err) in cst3xx_firmware_info()
202 return err; in cst3xx_firmware_info()
211 int err; in cst3xx_bootloader_enter() local
220 err = cst3xx_i2c_write(client, buf, 3); in cst3xx_bootloader_enter()
221 if (err) in cst3xx_bootloader_enter()
227 err = cst3xx_i2c_read_register(client, in cst3xx_bootloader_enter()
230 if (err) in cst3xx_bootloader_enter()
261 int err; in cst3xx_finish_touch_read() local
264 err = cst3xx_i2c_write(client, buf, 3); in cst3xx_finish_touch_read()
265 if (err) { in cst3xx_finish_touch_read()
267 "send read touch info ending failed: %d\n", err); in cst3xx_finish_touch_read()
268 return err; in cst3xx_finish_touch_read()
298 int err; in cst3xx_touch_report() local
301 err = cst3xx_i2c_read_register(client, CST3XX_TOUCH_DATA_PART_REG, in cst3xx_touch_report()
303 if (err || in cst3xx_touch_report()
311 err = cst3xx_finish_touch_read(client); in cst3xx_touch_report()
312 if (err) in cst3xx_touch_report()
361 int err; in cst3xx_input_dev_int() local
394 err = input_mt_init_slots(ts_data->input_dev, in cst3xx_input_dev_int()
397 if (err) { in cst3xx_input_dev_int()
399 "Failed to initialize input slots: %d\n", err); in cst3xx_input_dev_int()
400 return err; in cst3xx_input_dev_int()
403 err = input_register_device(ts_data->input_dev); in cst3xx_input_dev_int()
404 if (err) { in cst3xx_input_dev_int()
406 "Input device registration failed: %d\n", err); in cst3xx_input_dev_int()
407 return err; in cst3xx_input_dev_int()
416 int err; in hyn_probe() local
431 err = PTR_ERR_OR_ZERO(ts_data->reset_gpio); in hyn_probe()
432 if (err) { in hyn_probe()
433 dev_err(&client->dev, "request reset gpio failed: %d\n", err); in hyn_probe()
434 return err; in hyn_probe()
439 err = ts_data->chip->bootloader_enter(client); in hyn_probe()
440 if (err < 0) in hyn_probe()
441 return err; in hyn_probe()
443 err = ts_data->chip->init_input(client); in hyn_probe()
444 if (err < 0) in hyn_probe()
445 return err; in hyn_probe()
447 err = ts_data->chip->firmware_info(client); in hyn_probe()
448 if (err < 0) in hyn_probe()
449 return err; in hyn_probe()
451 err = devm_request_threaded_irq(&client->dev, client->irq, in hyn_probe()
455 if (err) { in hyn_probe()
456 dev_err(&client->dev, "failed to request IRQ: %d\n", err); in hyn_probe()
457 return err; in hyn_probe()