Lines Matching refs:retval
337 int retval, flags = 0;
361 retval = i2c_smbus_write_byte_data(client, ABX8XX_REG_CFG_KEY,
363 if (retval < 0) {
365 return retval;
368 retval = i2c_smbus_write_byte_data(client, ABX8XX_REG_OSC, flags);
370 return retval;
396 int retval;
399 retval = kstrtoul(buf, 10, &autocalibration);
400 if (retval < 0) {
405 retval = abx80x_rtc_set_autocalibration(dev->parent, autocalibration);
407 return retval ? retval : count;
432 int retval, flags, rc_mode = 0;
453 retval = i2c_smbus_write_byte_data(client, ABX8XX_REG_CFG_KEY,
455 if (retval < 0) {
457 return retval;
460 retval = i2c_smbus_write_byte_data(client, ABX8XX_REG_OSC, flags);
461 if (retval < 0) {
463 return retval;
466 return retval ? retval : count;