Lines Matching refs:scale_avail
125 struct mxs_lradc_scale scale_avail[LRADC_MAX_TOTAL_CHANS][2]; member
274 struct mxs_lradc_scale *scale_avail = in mxs_lradc_adc_write_raw() local
275 adc->scale_avail[chan->channel]; in mxs_lradc_adc_write_raw()
285 if (val == scale_avail[MXS_LRADC_DIV_DISABLED].integer && in mxs_lradc_adc_write_raw()
286 val2 == scale_avail[MXS_LRADC_DIV_DISABLED].nano) { in mxs_lradc_adc_write_raw()
290 } else if (val == scale_avail[MXS_LRADC_DIV_ENABLED].integer && in mxs_lradc_adc_write_raw()
291 val2 == scale_avail[MXS_LRADC_DIV_ENABLED].nano) { in mxs_lradc_adc_write_raw()
325 for (i = 0; i < ARRAY_SIZE(adc->scale_avail[ch]); i++) in mxs_lradc_adc_show_scale_avail()
327 adc->scale_avail[ch][i].integer, in mxs_lradc_adc_show_scale_avail()
328 adc->scale_avail[ch][i].nano); in mxs_lradc_adc_show_scale_avail()
772 for (s = 0; s < ARRAY_SIZE(adc->scale_avail[i]); s++) { in mxs_lradc_adc_probe()
784 adc->scale_avail[i][s].nano = in mxs_lradc_adc_probe()
786 adc->scale_avail[i][s].integer = scale_uv; in mxs_lradc_adc_probe()