iio: accel: mma8452: define unsigned return values where appropriate
authorMartin Kepplinger <martink@posteo.de>
Mon, 21 Nov 2016 19:53:54 +0000 (20:53 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Dec 2016 08:56:28 +0000 (08:56 +0000)
commit32b28076801cadf67eb8fce9aba09a9f08ef9c99
tree9794c20bc4790d323f38f01c89fe48801412a40c
parent25fc503e2dca093b63e335e4b4ec2226df947601
iio: accel: mma8452: define unsigned return values where appropriate

smatch warned:
sval_binop_signed: invalid divide LLONG_MIN/-1

and this fixes it. It's actually good to have, in order to avoid accidental
checking for negative return values here.

Signed-off-by: Martin Kepplinger <martink@posteo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/mma8452.c