Lines Matching full:error

94 			    "checksum error: 0x%02x expected, got 0x%02x\n",  in hycon_hy46xx_check_checksum()
106 int error; in hycon_hy46xx_isr() local
110 error = regmap_bulk_read(tsdata->regmap, 0, rdbuf, sizeof(rdbuf)); in hycon_hy46xx_isr()
111 if (error) { in hycon_hy46xx_isr()
112 dev_err_ratelimited(dev, "Unable to fetch data, error: %d\n", in hycon_hy46xx_isr()
113 error); in hycon_hy46xx_isr()
185 int error = 0; in hycon_hy46xx_setting_show() local
190 error = regmap_read(tsdata->regmap, attr->address, &val); in hycon_hy46xx_setting_show()
191 if (error < 0) { in hycon_hy46xx_setting_show()
193 "Failed to fetch attribute %s, error %d\n", in hycon_hy46xx_setting_show()
194 dattr->attr.name, error); in hycon_hy46xx_setting_show()
209 return error ?: count; in hycon_hy46xx_setting_show()
222 int error; in hycon_hy46xx_setting_store() local
226 error = kstrtouint(buf, 0, &val); in hycon_hy46xx_setting_store()
227 if (error) in hycon_hy46xx_setting_store()
231 error = -ERANGE; in hycon_hy46xx_setting_store()
235 error = regmap_write(tsdata->regmap, attr->address, val); in hycon_hy46xx_setting_store()
236 if (error < 0) { in hycon_hy46xx_setting_store()
238 "Failed to update attribute %s, error: %d\n", in hycon_hy46xx_setting_store()
239 dattr->attr.name, error); in hycon_hy46xx_setting_store()
246 return error ?: count; in hycon_hy46xx_setting_store()
282 int error; in hycon_hy46xx_get_defaults() local
285 error = device_property_read_u32(dev, "hycon,threshold", &val); in hycon_hy46xx_get_defaults()
286 if (!error) { in hycon_hy46xx_get_defaults()
287 error = regmap_write(tsdata->regmap, HY46XX_THRESHOLD, val); in hycon_hy46xx_get_defaults()
288 if (error < 0) in hycon_hy46xx_get_defaults()
295 error = regmap_write(tsdata->regmap, HY46XX_GLOVE_EN, val_bool); in hycon_hy46xx_get_defaults()
296 if (error < 0) in hycon_hy46xx_get_defaults()
300 error = device_property_read_u32(dev, "hycon,report-speed-hz", &val); in hycon_hy46xx_get_defaults()
301 if (!error) { in hycon_hy46xx_get_defaults()
302 error = regmap_write(tsdata->regmap, HY46XX_REPORT_SPEED, val); in hycon_hy46xx_get_defaults()
303 if (error < 0) in hycon_hy46xx_get_defaults()
310 error = regmap_write(tsdata->regmap, HY46XX_PWR_NOISE_EN, val_bool); in hycon_hy46xx_get_defaults()
311 if (error < 0) in hycon_hy46xx_get_defaults()
315 error = device_property_read_u32(dev, "hycon,filter-data", &val); in hycon_hy46xx_get_defaults()
316 if (!error) { in hycon_hy46xx_get_defaults()
317 error = regmap_write(tsdata->regmap, HY46XX_FILTER_DATA, val); in hycon_hy46xx_get_defaults()
318 if (error < 0) in hycon_hy46xx_get_defaults()
324 error = device_property_read_u32(dev, "hycon,gain", &val); in hycon_hy46xx_get_defaults()
325 if (!error) { in hycon_hy46xx_get_defaults()
326 error = regmap_write(tsdata->regmap, HY46XX_GAIN, val); in hycon_hy46xx_get_defaults()
327 if (error < 0) in hycon_hy46xx_get_defaults()
333 error = device_property_read_u32(dev, "hycon,edge-offset", &val); in hycon_hy46xx_get_defaults()
334 if (!error) { in hycon_hy46xx_get_defaults()
335 error = regmap_write(tsdata->regmap, HY46XX_EDGE_OFFSET, val); in hycon_hy46xx_get_defaults()
336 if (error < 0) in hycon_hy46xx_get_defaults()
349 int error; in hycon_hy46xx_get_parameters() local
352 error = regmap_read(tsdata->regmap, HY46XX_THRESHOLD, &val); in hycon_hy46xx_get_parameters()
353 if (error < 0) in hycon_hy46xx_get_parameters()
357 error = regmap_read(tsdata->regmap, HY46XX_GLOVE_EN, &val); in hycon_hy46xx_get_parameters()
358 if (error < 0) in hycon_hy46xx_get_parameters()
362 error = regmap_read(tsdata->regmap, HY46XX_REPORT_SPEED, &val); in hycon_hy46xx_get_parameters()
363 if (error < 0) in hycon_hy46xx_get_parameters()
367 error = regmap_read(tsdata->regmap, HY46XX_PWR_NOISE_EN, &val); in hycon_hy46xx_get_parameters()
368 if (error < 0) in hycon_hy46xx_get_parameters()
372 error = regmap_read(tsdata->regmap, HY46XX_FILTER_DATA, &val); in hycon_hy46xx_get_parameters()
373 if (error < 0) in hycon_hy46xx_get_parameters()
377 error = regmap_read(tsdata->regmap, HY46XX_GAIN, &val); in hycon_hy46xx_get_parameters()
378 if (error < 0) in hycon_hy46xx_get_parameters()
382 error = regmap_read(tsdata->regmap, HY46XX_EDGE_OFFSET, &val); in hycon_hy46xx_get_parameters()
383 if (error < 0) in hycon_hy46xx_get_parameters()
387 error = regmap_read(tsdata->regmap, HY46XX_RX_NR_USED, &val); in hycon_hy46xx_get_parameters()
388 if (error < 0) in hycon_hy46xx_get_parameters()
392 error = regmap_read(tsdata->regmap, HY46XX_TX_NR_USED, &val); in hycon_hy46xx_get_parameters()
393 if (error < 0) in hycon_hy46xx_get_parameters()
397 error = regmap_read(tsdata->regmap, HY46XX_PWR_MODE, &val); in hycon_hy46xx_get_parameters()
398 if (error < 0) in hycon_hy46xx_get_parameters()
402 error = regmap_read(tsdata->regmap, HY46XX_FW_VERSION, &val); in hycon_hy46xx_get_parameters()
403 if (error < 0) in hycon_hy46xx_get_parameters()
407 error = regmap_read(tsdata->regmap, HY46XX_LIB_VERSION, &val); in hycon_hy46xx_get_parameters()
408 if (error < 0) in hycon_hy46xx_get_parameters()
412 error = regmap_read(tsdata->regmap, HY46XX_TP_INFO, &val); in hycon_hy46xx_get_parameters()
413 if (error < 0) in hycon_hy46xx_get_parameters()
417 error = regmap_read(tsdata->regmap, HY46XX_TP_CHIP_ID, &val); in hycon_hy46xx_get_parameters()
418 if (error < 0) in hycon_hy46xx_get_parameters()
422 error = regmap_read(tsdata->regmap, HY46XX_BOOT_VER, &val); in hycon_hy46xx_get_parameters()
423 if (error < 0) in hycon_hy46xx_get_parameters()
443 int error; in hycon_hy46xx_probe() local
453 error = PTR_ERR(tsdata->vcc); in hycon_hy46xx_probe()
454 if (error != -EPROBE_DEFER) in hycon_hy46xx_probe()
456 "failed to request regulator: %d\n", error); in hycon_hy46xx_probe()
457 return error; in hycon_hy46xx_probe()
460 error = regulator_enable(tsdata->vcc); in hycon_hy46xx_probe()
461 if (error < 0) { in hycon_hy46xx_probe()
462 dev_err(&client->dev, "failed to enable vcc: %d\n", error); in hycon_hy46xx_probe()
463 return error; in hycon_hy46xx_probe()
466 error = devm_add_action_or_reset(&client->dev, in hycon_hy46xx_probe()
469 if (error) in hycon_hy46xx_probe()
470 return error; in hycon_hy46xx_probe()
475 error = PTR_ERR(tsdata->reset_gpio); in hycon_hy46xx_probe()
477 "Failed to request GPIO reset pin, error %d\n", error); in hycon_hy46xx_probe()
478 return error; in hycon_hy46xx_probe()
518 error = input_mt_init_slots(input, HY46XX_MAX_SUPPORTED_POINTS, in hycon_hy46xx_probe()
520 if (error) { in hycon_hy46xx_probe()
522 return error; in hycon_hy46xx_probe()
527 error = devm_request_threaded_irq(&client->dev, client->irq, in hycon_hy46xx_probe()
530 if (error) { in hycon_hy46xx_probe()
532 return error; in hycon_hy46xx_probe()
535 error = input_register_device(input); in hycon_hy46xx_probe()
536 if (error) in hycon_hy46xx_probe()
537 return error; in hycon_hy46xx_probe()