Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2ca8c86 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

staging: comedi: pcl816: use comedi_handle_events()



cfc_handle_events() is just a wrapper around comedi_handle_events().

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fa0e93d5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -355,7 +355,7 @@ static irqreturn_t pcl816_interrupt(int irq, void *d)

	pcl816_ai_clear_eoc(dev);

	cfc_handle_events(dev, s);
	comedi_handle_events(dev, s);
	return IRQ_HANDLED;
}

@@ -566,7 +566,7 @@ static int pcl816_ai_poll(struct comedi_device *dev, struct comedi_subdevice *s)
	devpriv->ai_poll_ptr = top1;	/*  new buffer position */
	spin_unlock_irqrestore(&dev->spinlock, flags);

	cfc_handle_events(dev, s);
	comedi_handle_events(dev, s);

	return comedi_buf_n_bytes_ready(s);
}