Lines Matching refs:error

170 	int error;  in tsc2005_cmd()  local
175 error = spi_sync(ts->spi, &msg); in tsc2005_cmd()
176 if (error) { in tsc2005_cmd()
178 __func__, cmd, error); in tsc2005_cmd()
179 return error; in tsc2005_cmd()
194 int error; in tsc2005_write() local
199 error = spi_sync(ts->spi, &msg); in tsc2005_write()
200 if (error) { in tsc2005_write()
203 __func__, reg, value, error); in tsc2005_write()
204 return error; in tsc2005_write()
226 int error; in tsc2005_read() local
233 error = spi_sync(ts->spi, &msg); in tsc2005_read()
234 if (error) in tsc2005_read()
235 return error; in tsc2005_read()
271 int error; in tsc2005_irq_thread() local
274 error = spi_sync(ts->spi, &ts->spi_read_msg); in tsc2005_irq_thread()
275 if (unlikely(error)) in tsc2005_irq_thread()
397 int error; in tsc2005_selftest_show() local
406 error = tsc2005_read(ts, TSC2005_REG_TEMP_HIGH, &temp_high_orig); in tsc2005_selftest_show()
407 if (error) { in tsc2005_selftest_show()
408 dev_warn(dev, "selftest failed: read error %d\n", error); in tsc2005_selftest_show()
415 error = tsc2005_write(ts, TSC2005_REG_TEMP_HIGH, temp_high_test); in tsc2005_selftest_show()
416 if (error) { in tsc2005_selftest_show()
417 dev_warn(dev, "selftest failed: write error %d\n", error); in tsc2005_selftest_show()
422 error = tsc2005_read(ts, TSC2005_REG_TEMP_HIGH, &temp_high); in tsc2005_selftest_show()
423 if (error) { in tsc2005_selftest_show()
425 error); in tsc2005_selftest_show()
445 error = tsc2005_read(ts, TSC2005_REG_TEMP_HIGH, &temp_high); in tsc2005_selftest_show()
446 if (error) { in tsc2005_selftest_show()
448 error); in tsc2005_selftest_show()
497 int error; in tsc2005_esd_work() local
514 error = tsc2005_read(ts, TSC2005_REG_CFR0, &r); in tsc2005_esd_work()
515 if (!error && in tsc2005_esd_work()
607 int error; in tsc2005_probe() local
641 error = spi_setup(spi); in tsc2005_probe()
642 if (error) in tsc2005_probe()
643 return error; in tsc2005_probe()
669 error = devm_gpio_request_one(&spi->dev, ts->reset_gpio, 0, in tsc2005_probe()
671 if (error) { in tsc2005_probe()
673 error); in tsc2005_probe()
674 return error; in tsc2005_probe()
679 error = PTR_ERR(ts->vio); in tsc2005_probe()
680 dev_err(&spi->dev, "vio regulator missing (%d)", error); in tsc2005_probe()
681 return error; in tsc2005_probe()
722 error = devm_request_threaded_irq(&spi->dev, spi->irq, NULL, in tsc2005_probe()
726 if (error) { in tsc2005_probe()
727 dev_err(&spi->dev, "Failed to request irq, err: %d\n", error); in tsc2005_probe()
728 return error; in tsc2005_probe()
733 error = regulator_enable(ts->vio); in tsc2005_probe()
734 if (error) in tsc2005_probe()
735 return error; in tsc2005_probe()
739 error = sysfs_create_group(&spi->dev.kobj, &tsc2005_attr_group); in tsc2005_probe()
740 if (error) { in tsc2005_probe()
742 "Failed to create sysfs attributes, err: %d\n", error); in tsc2005_probe()
746 error = input_register_device(ts->idev); in tsc2005_probe()
747 if (error) { in tsc2005_probe()
749 "Failed to register input device, err: %d\n", error); in tsc2005_probe()
761 return error; in tsc2005_probe()