From: Sachin Kamat Date: Fri, 7 Mar 2014 07:44:00 +0000 (+0000) Subject: iio: hid-sensor-magn-3d: Fix return values X-Git-Tag: omap-for-v3.17/fixes-against-rc2~304^2^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f25b41f7ec242fce43d0f745369c0ba9d25cb72;p=pandora-kernel.git iio: hid-sensor-magn-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 Cc: Srinivas Pandruvada Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed