Lines Matching refs:error
157 int error;
159 error = icn8505_read_xfer(icn8505->client, icn8505->client->addr, reg,
161 if (error)
162 return error;
204 int error;
209 error = icn8505_write_prog_reg(icn8505, 0xcc3355, 0x5a);
210 if (error)
211 return error;
215 error = icn8505_write_prog_reg(icn8505, 0x040400, 0x01);
216 if (error)
217 return error;
221 error = icn8505_read_prog_data(icn8505, 0x040002, buf, 1);
222 if (error)
223 return error;
233 error = icn8505_write_prog_reg(icn8505, 0x40028, 1);
234 if (error)
235 return error;
240 error = icn8505_write_prog_data(icn8505, offset,
242 if (error)
243 return error;
247 error = icn8505_write_prog_reg(icn8505, 0x40028, 0);
248 if (error)
249 return error;
252 error = icn8505_read_prog_data(icn8505, 0x40034, buf, 2);
253 if (error)
254 return error;
261 error = icn8505_read_prog_data(icn8505, 0x4002c, buf, 4);
262 if (error)
263 return error;
272 error = icn8505_write_prog_reg(icn8505, 0x40400, 0x03);
273 if (error)
274 return error;
284 int i, error;
291 error = firmware_request_platform(&fw, icn8505->firmware_name, dev);
292 if (error) {
293 dev_err(dev, "Firmware request error %d\n", error);
294 return error;
302 error = icn8505_try_fw_upload(icn8505, fw);
303 if (!error)
307 error, i, MAX_FW_UPLOAD_TRIES);
313 return error;
327 int i, error;
329 error = icn8505_read_data(icn8505, ICN8505_REG_TOUCHDATA,
331 if (error) {
332 dev_err(dev, "Error reading touch data: %d\n", error);
368 int error;
371 error = PTR_ERR_OR_ZERO(subsys);
372 if (error == -ENODATA)
374 else if (error)
375 return error;
390 int error;
416 error = icn8505_probe_acpi(icn8505, dev);
417 if (error)
418 return error;
420 error = icn8505_upload_fw(icn8505);
421 if (error)
422 return error;
424 error = icn8505_read_data(icn8505, ICN8505_REG_CONFIGDATA,
426 if (error) {
427 dev_err(dev, "Error reading resolution: %d\n", error);
428 return error;
443 error = input_mt_init_slots(input, ICN8505_MAX_TOUCHES,
445 if (error)
446 return error;
448 error = devm_request_threaded_irq(dev, client->irq, NULL, icn8505_irq,
450 if (error) {
451 dev_err(dev, "Error requesting irq: %d\n", error);
452 return error;
455 error = input_register_device(input);
456 if (error)
457 return error;
477 int error;
479 error = icn8505_upload_fw(icn8505);
480 if (error)
481 return error;