]> git.karo-electronics.de Git - linux-beck.git/commit
iio: mxs-lradc: check ranges of ts properties
authorStefan Wahren <stefan.wahren@i2se.com>
Mon, 29 Dec 2014 10:27:21 +0000 (10:27 +0000)
committerJonathan Cameron <jic23@kernel.org>
Mon, 5 Jan 2015 18:59:56 +0000 (18:59 +0000)
commitc22d2672c826a67a84fa60c17797315f4c94cedb
tree24cefdb40312b3f96f1808173afe758d7a4449a7
parenta5b940fa4ac0c4d8d9e07bda17a68a042e4d1d94
iio: mxs-lradc: check ranges of ts properties

The devicetree binding for mxs-lradc defines ranges for the
touchscreen properties. In order to avoid unexpected behavior like
division by zero, we better check these ranges during probe and
abort in error case.

Additionally this patch adds an important note from the reference
manual about the range of sample delay.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/mxs-lradc.c