Lines Matching refs:ret
92 int ret;
102 ret = wait_event_interruptible_timeout(info->wq, info->int_status,
104 if (ret == 0) {
120 if (ret < 0)
121 return ret;
132 int ret;
139 ret = npcm_adc_read(info, val, chan->channel);
141 if (ret) {
143 return ret;
177 int ret;
214 ret = -EINVAL;
218 ret = devm_request_irq(&pdev->dev, irq, npcm_adc_isr, 0,
220 if (ret < 0) {
228 ret = regulator_enable(info->vref);
229 if (ret) {
242 ret = PTR_ERR(info->vref);
269 ret = iio_device_register(indio_dev);
270 if (ret) {
286 return ret;