From: Stefan Wahren Date: Mon, 29 Dec 2014 10:27:21 +0000 (+0000) Subject: iio: mxs-lradc: check ranges of ts properties X-Git-Tag: fixes-v4.0-rc1~99^2~245^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c22d2672c826a67a84fa60c17797315f4c94cedb;p=pandora-kernel.git 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 Reviewed-by: Marek Vasut Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed