Lines Matching full: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(&client->dev, bu21013_power_off, ts); in bu21013_probe()
492 if (error) { in bu21013_probe()
494 return error; in bu21013_probe()
499 error = PTR_ERR_OR_ZERO(ts->cs_gpiod); in bu21013_probe()
500 if (error) { in bu21013_probe()
501 if (error != -EPROBE_DEFER) in bu21013_probe()
503 return error; in bu21013_probe()
507 error = devm_add_action_or_reset(&client->dev, in bu21013_probe()
509 if (error) { in bu21013_probe()
512 return error; in bu21013_probe()
518 error = PTR_ERR_OR_ZERO(ts->int_gpiod); in bu21013_probe()
519 if (error) { in bu21013_probe()
520 if (error != -EPROBE_DEFER) in bu21013_probe()
522 return error; in bu21013_probe()
529 error = bu21013_init_chip(ts); in bu21013_probe()
530 if (error) { in bu21013_probe()
531 dev_err(&client->dev, "error in bu21013 config\n"); in bu21013_probe()
532 return error; in bu21013_probe()
535 error = devm_request_threaded_irq(&client->dev, client->irq, in bu21013_probe()
538 if (error) { in bu21013_probe()
541 return error; in bu21013_probe()
544 error = input_register_device(in_dev); in bu21013_probe()
545 if (error) { in bu21013_probe()
547 return error; in bu21013_probe()
585 int error; in bu21013_resume() local
588 error = regulator_enable(ts->regulator); in bu21013_resume()
589 if (error) { in bu21013_resume()
592 return error; in bu21013_resume()
595 error = bu21013_init_chip(ts); in bu21013_resume()
596 if (error) { in bu21013_resume()
599 return error; in bu21013_resume()