commit | 1d93353da536d3403ac291dc96070f434f6cf285 | [log] [tgz] |
---|---|---|
author | Irina Tirdea <irina.tirdea@intel.com> | Mon Apr 13 18:40:49 2015 +0300 |
committer | Jonathan Cameron <jic23@kernel.org> | Sun Apr 26 19:43:08 2015 +0100 |
tree | 356164fad3cc6ff85d1d47332efabcd220570539 | |
parent | ae2ec9597c9329fdf503af264966bc7e421daa58 [diff] |
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>