diff options
author | Peter Meerwald <pmeerw@pmeerw.net> | 2014-02-25 19:53:00 +0000 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-02-25 20:45:58 +0000 |
commit | b2addb4a112eb2fbf242558e01115b4ac2f6f13b (patch) | |
tree | be6ff6562b54425b2383af1b681fed169021c8d0 /COPYING | |
parent | aa256f8d0dd9c2dff872849418d8e09e5d06718f (diff) | |
download | talos-obmc-linux-b2addb4a112eb2fbf242558e01115b4ac2f6f13b.tar.gz talos-obmc-linux-b2addb4a112eb2fbf242558e01115b4ac2f6f13b.zip |
iio:magnetometer:mag3110: Fix unreachable code
drivers/iio/magnetometer/mag3110.c:197 mag3110_read_raw()
info: ignoring unreachable code.
drivers/iio/magnetometer/mag3110.c
185 case IIO_CHAN_INFO_SCALE:
186 switch (chan->type) {
187 case IIO_MAGN:
188 *val = 0;
189 *val2 = 1000;
190 return IIO_VAL_INT_PLUS_MICRO;
191 case IIO_TEMP:
192 *val = 1000;
193 return IIO_VAL_INT;
194 default:
195 return -EINVAL;
196 }
197 return IIO_VAL_INT_PLUS_MICRO;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
introduced by f9279d3a, mag3110: Scale factor missing
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions