Searched refs:vcell (Results 1 – 1 of 1) sorted by relevance
182 static int max17040_raw_vcell_to_uvolts(struct max17040_chip *chip, u16 vcell) in max17040_raw_vcell_to_uvolts() argument186 return (vcell >> d->vcell_shift) * d->vcell_mul / d->vcell_div; in max17040_raw_vcell_to_uvolts()192 u32 vcell; in max17040_get_vcell() local194 regmap_read(chip->regmap, MAX17040_VCELL, &vcell); in max17040_get_vcell()196 return max17040_raw_vcell_to_uvolts(chip, vcell); in max17040_get_vcell()