diff options
author | Peter Meerwald <pmeerw@pmeerw.net> | 2013-08-18 17:07:00 +0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-08-19 23:01:25 +0400 |
commit | 0c0427acd5bfd25a44c074ac0a517d667ddf0a27 (patch) | |
tree | 8ffefdbe8ff48881d8458ebdb1e7707c50ae3ac0 /drivers/iio/gyro/hid-sensor-gyro-3d.c | |
parent | d536321df392ee0db6a5e92d98f0303020315f40 (diff) | |
download | linux-0c0427acd5bfd25a44c074ac0a517d667ddf0a27.tar.xz |
iio: Remove unnecessary _write_raw_get_fmt() in several hid-sensor drivers
IIO_VAL_INT_PLUS_MICRO is the default, no need to return it explicitly
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Acked-by: srinivas pandruvada <srinivas.pandruvada@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/gyro/hid-sensor-gyro-3d.c')
-rw-r--r-- | drivers/iio/gyro/hid-sensor-gyro-3d.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/iio/gyro/hid-sensor-gyro-3d.c b/drivers/iio/gyro/hid-sensor-gyro-3d.c index d9d7befdd77b..c688d974d3e3 100644 --- a/drivers/iio/gyro/hid-sensor-gyro-3d.c +++ b/drivers/iio/gyro/hid-sensor-gyro-3d.c @@ -175,18 +175,10 @@ static int gyro_3d_write_raw(struct iio_dev *indio_dev, return ret; } -static int gyro_3d_write_raw_get_fmt(struct iio_dev *indio_dev, - struct iio_chan_spec const *chan, - long mask) -{ - return IIO_VAL_INT_PLUS_MICRO; -} - static const struct iio_info gyro_3d_info = { .driver_module = THIS_MODULE, .read_raw = &gyro_3d_read_raw, .write_raw = &gyro_3d_write_raw, - .write_raw_get_fmt = &gyro_3d_write_raw_get_fmt, }; /* Function to push data to buffer */ |