Skip to content
Snippets Groups Projects
Commit d09fa59c authored by Andreas Ruprecht's avatar Andreas Ruprecht Committed by Ben Hutchings
Browse files

Staging: iio/accel: Changed return type of lis3l02dq_read_event_config() to int


commit 28998e00 upstream.

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: default avatarAndreas Ruprecht <rupran@einserver.de>
Acked-by: default avatarJonathan Cameron <jic23@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent cccfdc35
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment