Lines Matching refs:lradc
130 struct mxs_lradc *lradc; in mxs_lradc_probe() local
136 lradc = devm_kzalloc(&pdev->dev, sizeof(*lradc), GFP_KERNEL); in mxs_lradc_probe()
137 if (!lradc) in mxs_lradc_probe()
140 lradc->soc = (kernel_ulong_t)device_get_match_data(&pdev->dev); in mxs_lradc_probe()
142 lradc->clk = devm_clk_get(&pdev->dev, NULL); in mxs_lradc_probe()
143 if (IS_ERR(lradc->clk)) { in mxs_lradc_probe()
145 return PTR_ERR(lradc->clk); in mxs_lradc_probe()
148 ret = clk_prepare_enable(lradc->clk); in mxs_lradc_probe()
158 lradc->buffer_vchans = BUFFER_VCHANS_LIMITED; in mxs_lradc_probe()
162 lradc->touchscreen_wire = MXS_LRADC_TOUCHSCREEN_4WIRE; in mxs_lradc_probe()
165 if (lradc->soc == IMX28_LRADC) { in mxs_lradc_probe()
166 lradc->touchscreen_wire = in mxs_lradc_probe()
179 lradc->buffer_vchans = BUFFER_VCHANS_ALL; in mxs_lradc_probe()
182 platform_set_drvdata(pdev, lradc); in mxs_lradc_probe()
190 switch (lradc->soc) { in mxs_lradc_probe()
214 if (!lradc->touchscreen_wire) in mxs_lradc_probe()
228 clk_disable_unprepare(lradc->clk); in mxs_lradc_probe()
235 struct mxs_lradc *lradc = platform_get_drvdata(pdev); in mxs_lradc_remove() local
237 clk_disable_unprepare(lradc->clk); in mxs_lradc_remove()