Lines Matching refs:lradc
131 struct mxs_lradc *lradc; in mxs_lradc_probe() local
137 lradc = devm_kzalloc(&pdev->dev, sizeof(*lradc), GFP_KERNEL); in mxs_lradc_probe()
138 if (!lradc) in mxs_lradc_probe()
145 lradc->soc = (enum mxs_lradc_id)of_id->data; in mxs_lradc_probe()
147 lradc->clk = devm_clk_get(&pdev->dev, NULL); in mxs_lradc_probe()
148 if (IS_ERR(lradc->clk)) { in mxs_lradc_probe()
150 return PTR_ERR(lradc->clk); in mxs_lradc_probe()
153 ret = clk_prepare_enable(lradc->clk); in mxs_lradc_probe()
163 lradc->buffer_vchans = BUFFER_VCHANS_LIMITED; in mxs_lradc_probe()
167 lradc->touchscreen_wire = MXS_LRADC_TOUCHSCREEN_4WIRE; in mxs_lradc_probe()
170 if (lradc->soc == IMX28_LRADC) { in mxs_lradc_probe()
171 lradc->touchscreen_wire = in mxs_lradc_probe()
184 lradc->buffer_vchans = BUFFER_VCHANS_ALL; in mxs_lradc_probe()
187 platform_set_drvdata(pdev, lradc); in mxs_lradc_probe()
195 switch (lradc->soc) { in mxs_lradc_probe()
219 if (!lradc->touchscreen_wire) in mxs_lradc_probe()
233 clk_disable_unprepare(lradc->clk); in mxs_lradc_probe()
240 struct mxs_lradc *lradc = platform_get_drvdata(pdev); in mxs_lradc_remove() local
242 clk_disable_unprepare(lradc->clk); in mxs_lradc_remove()