Lines Matching refs:soc_data
57 const struct ingenic_adc_soc_data *soc_data; member
229 *length = adc->soc_data->battery_raw_avail_size; in ingenic_adc_read_avail()
230 *vals = adc->soc_data->battery_raw_avail; in ingenic_adc_read_avail()
234 *length = adc->soc_data->battery_scale_avail_size; in ingenic_adc_read_avail()
235 *vals = adc->soc_data->battery_scale_avail; in ingenic_adc_read_avail()
283 *val = adc->soc_data->battery_high_vref; in ingenic_adc_read_raw()
284 *val2 = adc->soc_data->battery_high_vref_bits; in ingenic_adc_read_raw()
333 const struct ingenic_adc_soc_data *soc_data; in ingenic_adc_probe() local
336 soc_data = device_get_match_data(dev); in ingenic_adc_probe()
337 if (!soc_data) in ingenic_adc_probe()
346 adc->soc_data = soc_data; in ingenic_adc_probe()
366 if (soc_data->init_clk_div) { in ingenic_adc_probe()
367 ret = soc_data->init_clk_div(dev, adc); in ingenic_adc_probe()