Lines Matching refs:error
151 int error; in tsc200x_irq_thread() local
154 error = regmap_bulk_read(ts->regmap, TSC200X_REG_X, &tsdata, in tsc200x_irq_thread()
156 if (unlikely(error)) in tsc200x_irq_thread()
273 int error; in tsc200x_selftest_show() local
282 error = regmap_read(ts->regmap, TSC200X_REG_TEMP_HIGH, &temp_high_orig); in tsc200x_selftest_show()
283 if (error) { in tsc200x_selftest_show()
284 dev_warn(dev, "selftest failed: read error %d\n", error); in tsc200x_selftest_show()
291 error = regmap_write(ts->regmap, TSC200X_REG_TEMP_HIGH, temp_high_test); in tsc200x_selftest_show()
292 if (error) { in tsc200x_selftest_show()
293 dev_warn(dev, "selftest failed: write error %d\n", error); in tsc200x_selftest_show()
298 error = regmap_read(ts->regmap, TSC200X_REG_TEMP_HIGH, &temp_high); in tsc200x_selftest_show()
299 if (error) { in tsc200x_selftest_show()
301 error); in tsc200x_selftest_show()
321 error = regmap_read(ts->regmap, TSC200X_REG_TEMP_HIGH, &temp_high); in tsc200x_selftest_show()
322 if (error) { in tsc200x_selftest_show()
324 error); in tsc200x_selftest_show()
372 int error; in tsc200x_esd_work() local
389 error = regmap_read(ts->regmap, TSC200X_REG_CFR0, &r); in tsc200x_esd_work()
390 if (!error && in tsc200x_esd_work()
470 int error; in tsc200x_probe() local
525 error = PTR_ERR(ts->reset_gpio); in tsc200x_probe()
526 dev_err(dev, "error acquiring reset gpio: %d\n", error); in tsc200x_probe()
527 return error; in tsc200x_probe()
532 error = PTR_ERR(ts->vio); in tsc200x_probe()
533 dev_err(dev, "vio regulator missing (%d)", error); in tsc200x_probe()
534 return error; in tsc200x_probe()
572 error = devm_request_threaded_irq(dev, irq, NULL, in tsc200x_probe()
576 if (error) { in tsc200x_probe()
577 dev_err(dev, "Failed to request irq, err: %d\n", error); in tsc200x_probe()
578 return error; in tsc200x_probe()
583 error = regulator_enable(ts->vio); in tsc200x_probe()
584 if (error) in tsc200x_probe()
585 return error; in tsc200x_probe()
589 error = sysfs_create_group(&dev->kobj, &tsc200x_attr_group); in tsc200x_probe()
590 if (error) { in tsc200x_probe()
592 "Failed to create sysfs attributes, err: %d\n", error); in tsc200x_probe()
596 error = input_register_device(ts->idev); in tsc200x_probe()
597 if (error) { in tsc200x_probe()
599 "Failed to register input device, err: %d\n", error); in tsc200x_probe()
611 return error; in tsc200x_probe()