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>
This commit is contained in:
Ico Doornekamp 2016-09-13 21:14:14 +02:00 • committed by Jonathan Cameron
commit e0f3fc9b47
2 changed files with 121 additions and 122 deletions