Lines Matching full:twl4030_madc
234 static struct twl4030_madc_data *twl4030_madc; variable
610 if (!req || !twl4030_madc) in twl4030_madc_conversion()
613 mutex_lock(&twl4030_madc->lock); in twl4030_madc_conversion()
619 if (twl4030_madc->requests[req->method].active) { in twl4030_madc_conversion()
627 dev_err(twl4030_madc->dev, in twl4030_madc_conversion()
636 dev_err(twl4030_madc->dev, in twl4030_madc_conversion()
647 ret = twl4030_madc_start_conversion(twl4030_madc, req->method); in twl4030_madc_conversion()
650 twl4030_madc->requests[req->method].active = true; in twl4030_madc_conversion()
652 ret = twl4030_madc_wait_conversion_ready(twl4030_madc, 5, method->ctrl); in twl4030_madc_conversion()
654 twl4030_madc->requests[req->method].active = false; in twl4030_madc_conversion()
657 ret = twl4030_madc_read_channels(twl4030_madc, method->rbase, in twl4030_madc_conversion()
659 twl4030_madc->requests[req->method].active = false; in twl4030_madc_conversion()
662 mutex_unlock(&twl4030_madc->lock); in twl4030_madc_conversion()
842 "twl4030_madc", madc); in twl4030_madc_probe()
847 twl4030_madc = madc; in twl4030_madc_probe()
919 .name = "twl4030_madc",
929 MODULE_ALIAS("platform:twl4030_madc");