Searched refs:max_raw (Results 1 – 1 of 1) sorted by relevance
64 int scale_len, scale_type, best_idx = -1, best_mV, max_raw, i, ret; in ingenic_battery_set_scale() local67 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()