staging;iio:adc:ad7606 use iio_sw_buffer_preenable rather than local equiv
authorJonathan Cameron <jic23@cam.ac.uk>
Fri, 30 Sep 2011 09:05:41 +0000 (10:05 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 23:07:04 +0000 (16:07 -0700)
commit4f5495d0a5c3a4a0174ad8e7eca2ad579d03deff
treef0a157305f398ca83d8bceb288d72437a6053f48
parent68b41aefa30d9b8713d1c255080863e611a5a226
staging;iio:adc:ad7606 use iio_sw_buffer_preenable rather than local equiv

Other than a few slight refactorings the local version was pretty standard
so replace it and rework to get rid of st->d_size which it setup.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/adc/ad7606.h
drivers/staging/iio/adc/ad7606_ring.c