iio: accel: sca3000_core: implemented IIO_CHAN_INFO_SAMP_FREQ
authorIco Doornekamp <ico@pruts.nl>
Tue, 13 Sep 2016 19:14:14 +0000 (21:14 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 18 Sep 2016 10:46:20 +0000 (11:46 +0100)
commite0f3fc9b47e61bb5d79f2bb8684d80eee5aaac99
treec6fdba98bb75ae1ea313b1d46eb9f87965c595f0
parent12884004f17f1c469d1f9a9a9db6147694db57d0
iio: accel: sca3000_core: implemented IIO_CHAN_INFO_SAMP_FREQ

Moved functionality from IIO_DEV_ATTR_SAMP_FREQ attribute into
IIO_CHAN_INFO_SAMP_FREQ handlers. Added sca3000_write_raw() to allow
writing the element as well.

Signed-off-by: Ico Doornekamp <ico@pruts.nl>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/accel/sca3000.h
drivers/staging/iio/accel/sca3000_core.c