Home
last modified time | relevance | path

Searched refs:max_raw (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/power/supply/
H A Dingenic-battery.c66 int scale_len, scale_type, best_idx = -1, best_mV, max_raw, i, ret; in ingenic_battery_set_scale() local
69 ret = iio_read_max_channel_raw(bat->channel, &max_raw); in ingenic_battery_set_scale()
88 u64 scale_mV = (max_raw * scale_raw[i]) >> scale_raw[i + 1]; in ingenic_battery_set_scale()