Lines Matching refs:error
240 int error; in bu21013_gpio_irq() local
243 error = bu21013_do_touch_report(ts); in bu21013_gpio_irq()
244 if (error) { in bu21013_gpio_irq()
264 int error; in bu21013_init_chip() local
266 error = i2c_smbus_write_byte_data(client, BU21013_RESET_REG, in bu21013_init_chip()
268 if (error) { in bu21013_init_chip()
270 return error; in bu21013_init_chip()
274 error = i2c_smbus_write_byte_data(client, BU21013_SENSOR_0_7_REG, in bu21013_init_chip()
276 if (error) { in bu21013_init_chip()
278 return error; in bu21013_init_chip()
281 error = i2c_smbus_write_byte_data(client, BU21013_SENSOR_8_15_REG, in bu21013_init_chip()
283 if (error) { in bu21013_init_chip()
285 return error; in bu21013_init_chip()
288 error = i2c_smbus_write_byte_data(client, BU21013_SENSOR_16_23_REG, in bu21013_init_chip()
290 if (error) { in bu21013_init_chip()
292 return error; in bu21013_init_chip()
295 error = i2c_smbus_write_byte_data(client, BU21013_POS_MODE1_REG, in bu21013_init_chip()
298 if (error) { in bu21013_init_chip()
300 return error; in bu21013_init_chip()
303 error = i2c_smbus_write_byte_data(client, BU21013_POS_MODE2_REG, in bu21013_init_chip()
309 if (error) { in bu21013_init_chip()
311 return error; in bu21013_init_chip()
314 error = i2c_smbus_write_byte_data(client, BU21013_CLK_MODE_REG, in bu21013_init_chip()
317 if (error) { in bu21013_init_chip()
319 return error; in bu21013_init_chip()
322 error = i2c_smbus_write_byte_data(client, BU21013_IDLE_REG, in bu21013_init_chip()
325 if (error) { in bu21013_init_chip()
327 return error; in bu21013_init_chip()
330 error = i2c_smbus_write_byte_data(client, BU21013_INT_MODE_REG, in bu21013_init_chip()
332 if (error) { in bu21013_init_chip()
334 return error; in bu21013_init_chip()
337 error = i2c_smbus_write_byte_data(client, BU21013_FILTER_REG, in bu21013_init_chip()
340 if (error) { in bu21013_init_chip()
342 return error; in bu21013_init_chip()
345 error = i2c_smbus_write_byte_data(client, BU21013_TH_ON_REG, in bu21013_init_chip()
347 if (error) { in bu21013_init_chip()
349 return error; in bu21013_init_chip()
352 error = i2c_smbus_write_byte_data(client, BU21013_TH_OFF_REG, in bu21013_init_chip()
354 if (error) { in bu21013_init_chip()
356 return error; in bu21013_init_chip()
359 error = i2c_smbus_write_byte_data(client, BU21013_GAIN_REG, in bu21013_init_chip()
361 if (error) { in bu21013_init_chip()
363 return error; in bu21013_init_chip()
366 error = i2c_smbus_write_byte_data(client, BU21013_OFFSET_MODE_REG, in bu21013_init_chip()
368 if (error) { in bu21013_init_chip()
370 return error; in bu21013_init_chip()
373 error = i2c_smbus_write_byte_data(client, BU21013_XY_EDGE_REG, in bu21013_init_chip()
378 if (error) { in bu21013_init_chip()
380 return error; in bu21013_init_chip()
383 error = i2c_smbus_write_byte_data(client, BU21013_DONE_REG, in bu21013_init_chip()
385 if (error) { in bu21013_init_chip()
387 return error; in bu21013_init_chip()
414 int error; in bu21013_probe() local
471 error = input_mt_init_slots(in_dev, MAX_FINGERS, in bu21013_probe()
474 if (error) { in bu21013_probe()
476 return error; in bu21013_probe()
485 error = regulator_enable(ts->regulator); in bu21013_probe()
486 if (error) { in bu21013_probe()
488 return error; in bu21013_probe()
491 error = devm_add_action_or_reset(dev, bu21013_power_off, ts); in bu21013_probe()
492 if (error) { in bu21013_probe()
494 return error; in bu21013_probe()
504 error = devm_add_action_or_reset(dev, bu21013_disable_chip, ts); in bu21013_probe()
505 if (error) { in bu21013_probe()
507 return error; in bu21013_probe()
512 error = PTR_ERR_OR_ZERO(ts->int_gpiod); in bu21013_probe()
513 if (error) in bu21013_probe()
514 return dev_err_probe(dev, error, "failed to get INT GPIO\n"); in bu21013_probe()
520 error = bu21013_init_chip(ts); in bu21013_probe()
521 if (error) { in bu21013_probe()
523 return error; in bu21013_probe()
526 error = devm_request_threaded_irq(dev, client->irq, NULL, bu21013_gpio_irq, in bu21013_probe()
528 if (error) { in bu21013_probe()
530 return error; in bu21013_probe()
533 error = input_register_device(in_dev); in bu21013_probe()
534 if (error) { in bu21013_probe()
536 return error; in bu21013_probe()
572 int error; in bu21013_resume() local
575 error = regulator_enable(ts->regulator); in bu21013_resume()
576 if (error) { in bu21013_resume()
579 return error; in bu21013_resume()
582 error = bu21013_init_chip(ts); in bu21013_resume()
583 if (error) { in bu21013_resume()
586 return error; in bu21013_resume()