diff options
author | Andreas Ruprecht <rupran@einserver.de> | 2011-11-28 16:59:13 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-30 19:37:33 +0900 |
commit | 28998e005bb669b60de0e432d6f142267f5c1403 (patch) | |
tree | 263f968c6551ba93bc47104833bd0593e1a1c0ba /drivers/staging/rtl8192e | |
parent | c1fcc4c9bd50d2d29bfaeb888af7de246343235d (diff) | |
download | op-kernel-dev-28998e005bb669b60de0e432d6f142267f5c1403.zip op-kernel-dev-28998e005bb669b60de0e432d6f142267f5c1403.tar.gz |
Staging: iio/accel: Changed return type of lis3l02dq_read_event_config() to int
The lis3l02dq_read_event_config() function returned an ssize_t up to
now, which lead to a compiler warning in line 660 (initialization from
incompatible pointer type). The iio_info struct is defined to accept an
int-returning function as the read_event_config parameter.
Also it seems odd to have the check for (ret < 0) and return ret in
this case, when the return type is signed.
Signed-off-by: Andreas Ruprecht <rupran@einserver.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rtl8192e')
0 files changed, 0 insertions, 0 deletions