Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/power/supply/
Dingenic-battery.c64 int scale_len, scale_type, best_idx = -1, best_mV, max_raw, i, ret; in ingenic_battery_set_scale() local
67 ret = iio_read_max_channel_raw(bat->channel, &max_raw); in ingenic_battery_set_scale()
86 u64 scale_mV = (max_raw * scale_raw[i]) >> scale_raw[i + 1]; in ingenic_battery_set_scale()