Lines Matching defs:error
223 int error;
229 error = i2c_smbus_read_i2c_block_data(bu21029->client, BU21029_AUTOSCAN,
231 if (error < 0)
266 int error, i;
269 error = regulator_enable(bu21029->vdd);
270 if (error) {
271 dev_err(&i2c->dev, "failed to power up chip: %d", error);
272 return error;
281 error = i2c_smbus_read_i2c_block_data(i2c, BU21029_HWID_REG,
283 if (error < 0) {
291 error = -ENODEV;
296 error = i2c_smbus_write_byte_data(i2c,
299 if (error < 0) {
303 error);
308 error = i2c_smbus_write_byte(i2c, BU21029_AUTOSCAN);
309 if (error < 0) {
320 return error;
339 int error;
354 error = device_property_read_u32(&client->dev, "rohm,x-plate-ohms",
356 if (error) {
358 "invalid 'x-plate-ohms' supplied: %d\n", error);
359 return error;
364 error = PTR_ERR(bu21029->vdd);
365 if (error != -EPROBE_DEFER)
367 "failed to acquire 'vdd' supply: %d\n", error);
368 return error;
374 error = PTR_ERR(bu21029->reset_gpios);
375 if (error != -EPROBE_DEFER)
377 "failed to acquire 'reset' gpio: %d\n", error);
378 return error;
405 error = devm_request_threaded_irq(&client->dev, client->irq,
408 if (error) {
410 "unable to request touch irq: %d\n", error);
411 return error;
414 error = input_register_device(in_dev);
415 if (error) {
417 "unable to register input device: %d\n", error);
418 return error;