staging:iio:adc:ad7793 use iio_sw_buffer_preenable to avoid repitition.
authorJonathan Cameron <jic23@kernel.org>
Sat, 21 Apr 2012 09:09:39 +0000 (10:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2012 18:23:37 +0000 (11:23 -0700)
commit81a4fc01217c12b42af8a992dcf7fa9cc8373297
tree6bdf71c4e232b377048d793c4919638ceda12561
parent46df6378c8484eb3ae054938ffb17c2bea691f7b
staging:iio:adc:ad7793 use iio_sw_buffer_preenable to avoid repitition.

Now the generic function caches the scan size a lot of what was here
was redundant and is removed.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/adc/ad7793.c