Lines Matching refs:ret
97 int ret;
110 ret = regmap_update_bits(chip->regmap, ISL29018_REG_ADD_COMMAND2,
113 if (ret < 0)
114 return ret;
133 int ret;
147 ret = regmap_update_bits(chip->regmap, ISL29018_REG_ADD_COMMAND2,
150 if (ret < 0)
151 return ret;
366 int ret = -EINVAL;
370 ret = -EBUSY;
378 ret = 0;
383 ret = isl29018_set_integration_time(chip, val2);
387 ret = isl29018_set_scale(chip, val, val2);
396 return ret;
405 int ret = -EINVAL;
410 ret = -EBUSY;
418 ret = isl29018_read_lux(chip, val);
421 ret = isl29018_read_ir(chip, val);
424 ret = isl29018_read_proximity_ir(chip,
431 if (!ret)
432 ret = IIO_VAL_INT;
438 ret = IIO_VAL_INT_PLUS_MICRO;
445 ret = IIO_VAL_INT_PLUS_MICRO;
452 ret = IIO_VAL_INT_PLUS_MICRO;
462 return ret;
791 int ret;
801 ret = regulator_disable(chip->vcc_reg);
802 if (ret)
807 return ret;