Lines Matching refs:soc_data
108 const struct ingenic_adc_soc_data *soc_data; member
249 if (!adc->soc_data->battery_vref_mode) in ingenic_adc_write_raw()
616 *length = adc->soc_data->battery_raw_avail_size; in ingenic_adc_read_avail()
617 *vals = adc->soc_data->battery_raw_avail; in ingenic_adc_read_avail()
621 *length = adc->soc_data->battery_scale_avail_size; in ingenic_adc_read_avail()
622 *vals = adc->soc_data->battery_scale_avail; in ingenic_adc_read_avail()
645 if (adc->soc_data->has_aux_md && engine == 0) { in ingenic_adc_read_chan_info_raw()
708 *val = adc->soc_data->battery_high_vref; in ingenic_adc_read_raw()
709 *val2 = adc->soc_data->battery_high_vref_bits; in ingenic_adc_read_raw()
828 const struct ingenic_adc_soc_data *soc_data; in ingenic_adc_probe() local
831 soc_data = device_get_match_data(dev); in ingenic_adc_probe()
832 if (!soc_data) in ingenic_adc_probe()
842 adc->soc_data = soc_data; in ingenic_adc_probe()
872 if (soc_data->init_clk_div) { in ingenic_adc_probe()
873 ret = soc_data->init_clk_div(dev, adc); in ingenic_adc_probe()
903 iio_dev->channels = soc_data->channels; in ingenic_adc_probe()
904 iio_dev->num_channels = soc_data->num_channels; in ingenic_adc_probe()