/* This is only split from the main interrupt handler so as to reduce the amount of code if the ring buffer is not enabled.  */
void sca3000_ring_int_process(u8 val, struct iio_ring_buffer *ring)
/* This is only split from the main interrupt handler so as to reduce the amount of code if the ring buffer is not enabled.  */
void sca3000_ring_int_process(u8 val, struct iio_ring_buffer *ring)
{
	if (val & SCA3000_INT_STATUS_THREE_QUARTERS)
		iio_push_or_escallate_ring_event(ring,
						 IIO_EVENT_CODE_RING_75_FULL,
						 0);
	else if (val & SCA3000_INT_STATUS_HALF)
		iio_push_ring_event(ring,
				    IIO_EVENT_CODE_RING_50_FULL, 0);
}