]> git.hungrycats.org Git - linux/commit
iio:bma180: Missing check for frequency fractional part
authorPeter Meerwald <pmeerw@pmeerw.net>
Wed, 16 Jul 2014 18:32:00 +0000 (19:32 +0100)
committerJiri Slaby <jslaby@suse.cz>
Tue, 19 Aug 2014 12:23:36 +0000 (14:23 +0200)
commite167bebf57cd9033574ee7f78f54e76fe1529e77
treec38287e075938457f432b287f244ae4702b80759
parent357249fb9640cd72a4e6d8008ce1f1be0154e37c
iio:bma180: Missing check for frequency fractional part

commit 9b2a4d35a6ceaf217be61ed8eb3c16986244f640 upstream.

val2 should be zero

This will make no difference for correct inputs but will reject
incorrect ones with a decimal part in the value written to the sysfs
interface.

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Cc: Oleksandr Kravchenko <o.v.kravchenko@globallogic.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/iio/accel/bma180.c