iio:accel:mma8452: check values to be written
authorHartmut Knaack <knaack.h@gmx.de>
Sun, 2 Aug 2015 20:43:49 +0000 (22:43 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 8 Aug 2015 16:30:42 +0000 (17:30 +0100)
commit11218226184b6b2be5cde4bf16f647dda225d4f3
treeddef13faec9a0abe126e70aa013327e5f7c85fe4
parentb9fddcdb44c2e274193b119dd6c3af3a9324640a
iio:accel:mma8452: check values to be written

Check values to be written to the device for valid lower and upper bounds.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/mma8452.c