Searched hist:"27793803 f2ea876799cc44e05bb28d34b34a3869" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/iio/gyro/ |
H A D | hid-sensor-gyro-3d.c | diff 27793803f2ea876799cc44e05bb28d34b34a3869 Fri Mar 07 01:44:00 CST 2014 Sachin Kamat <sachin.kamat@samsung.com> iio: hid-sensor-gyro-3d: Fix return values
IIO_CHAN_INFO_SAMP_FREQ and IIO_CHAN_INFO_HYSTERESIS cases ignored the actual return values (which could be -EINVAL) and instead returned IIO_VAL_INT_PLUS_MICRO always. Return the actual value obtained from the functions. Both functions return IIO_VAL_INT_PLUS_MICRO upon success.
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com> Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
|