diff options
author | Peter Meerwald <pmeerw@pmeerw.net> | 2013-08-18 09:07:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-08-19 15:01:25 -0400 |
commit | 0c0427acd5bfd25a44c074ac0a517d667ddf0a27 (patch) | |
tree | 8ffefdbe8ff48881d8458ebdb1e7707c50ae3ac0 /drivers/iio/light | |
parent | d536321df392ee0db6a5e92d98f0303020315f40 (diff) |
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/light')
-rw-r--r-- | drivers/iio/light/hid-sensor-als.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/iio/light/hid-sensor-als.c b/drivers/iio/light/hid-sensor-als.c index 84cf0043c99d..e59d00c3139c 100644 --- a/drivers/iio/light/hid-sensor-als.c +++ b/drivers/iio/light/hid-sensor-als.c | |||
@@ -154,18 +154,10 @@ static int als_write_raw(struct iio_dev *indio_dev, | |||
154 | return ret; | 154 | return ret; |
155 | } | 155 | } |
156 | 156 | ||
157 | static int als_write_raw_get_fmt(struct iio_dev *indio_dev, | ||
158 | struct iio_chan_spec const *chan, | ||
159 | long mask) | ||
160 | { | ||
161 | return IIO_VAL_INT_PLUS_MICRO; | ||
162 | } | ||
163 | |||
164 | static const struct iio_info als_info = { | 157 | static const struct iio_info als_info = { |
165 | .driver_module = THIS_MODULE, | 158 | .driver_module = THIS_MODULE, |
166 | .read_raw = &als_read_raw, | 159 | .read_raw = &als_read_raw, |
167 | .write_raw = &als_write_raw, | 160 | .write_raw = &als_write_raw, |
168 | .write_raw_get_fmt = &als_write_raw_get_fmt, | ||
169 | }; | 161 | }; |
170 | 162 | ||
171 | /* Function to push data to buffer */ | 163 | /* Function to push data to buffer */ |