iio: bmg160: add callbacks for the filter frequency
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>
Thu, 21 Apr 2016 10:49:00 +0000 (12:49 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 3 Jul 2016 11:39:55 +0000 (12:39 +0100)
commitbf61f5d2266cc6c117483c8ca4c73771a32e2fba
tree5348b5ddf9c57058d3e2e9025c28f2b2383b1fa2
parent4324c97ecedcba8a548bcff9d620880e11359425
iio: bmg160: add callbacks for the filter frequency

The filter frequency and sample rate have a fixed relationship.
Only the filter frequency is unique, however.
Currently the driver ignores the filter settings for 32 Hz and
64 Hz.

This patch adds the necessary callbacks to be able to configure
and read the filter setting from sysfs.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/gyro/bmg160_core.c