Irina Tirdea 1d93353da5 iio: accel: mma9553: check input value for activity period
When setting the activity period, the value introduced by
the user in sysfs is not checked for validity.

Add a boundary check so that only allowed values are
reported as successfully written to device.

Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Reported-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-04-26 19:43:08 +01:00
..
2015-04-07 11:03:02 +02:00
2015-01-30 20:34:59 +00:00
2015-04-07 11:03:02 +02:00
2015-01-30 20:34:59 +00:00