iio-light: Use a signed return type for ltr501_match_samp_freq()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 19 Dec 2015 13:14:54 +0000 (14:14 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 19 Dec 2015 17:00:29 +0000 (17:00 +0000)
commitc08ae18560aaed50fed306a2e11f36ce70130f65
tree6f5357df2c26eb976a3f5930bfec828cfa7f8909
parentd590faf9e8f8509a0a0aa79c38e87fcc6b913248
iio-light: Use a signed return type for ltr501_match_samp_freq()

The return type "unsigned int" was used by the ltr501_match_samp_freq()
function despite of the aspect that it will eventually return a negative
error code.
Improve this implementation detail by deletion of the type modifier then.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/ltr501.c