devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] iio: mxs-lradc: check ranges of ts properties
@ 2014-12-22 12:14 Stefan Wahren
       [not found] ` <1419250476-2393-1-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Stefan Wahren @ 2014-12-22 12:14 UTC (permalink / raw)
  To: jic23-DgEjT+Ai2ygdnm+yROfE0A
  Cc: festevam-Re5JQEeQqe8AvxtiuMwx3w,
	kristina.martsenko-Re5JQEeQqe8AvxtiuMwx3w, knaack.h-Mmb7MZpHnFY,
	marex-ynQEQJNshbs, kernel-bIcnvbaLZ9MEGnE8C9+IrQ,
	pawel.moll-5wv7dgnIgG8, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg,
	robh+dt-DgEjT+Ai2ygdnm+yROfE0A, galak-sgV2jX0FEOL9JmXXK+q4OQ,
	mark.rutland-5wv7dgnIgG8, linux-iio-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Stefan Wahren

These patch series fixes off-by-one issues of the touchscreen DT properties
and finally adds a range check during probe.

Only the range check has been tested by myself, because i don't have a
touchscreen. So a functional test is very welcome.

Changes since RFC:
- add fix for off-by-one issues
- first check DT properties and then assign a value
- adapt range check to better represent DT binding
- add important note from the reference manual as comment

Stefan Wahren (2):
  DT: mxs-lradc: fix ranges of ts properties
  iio: mxs-lradc: check ranges of ts properties

 .../bindings/staging/iio/adc/mxs-lradc.txt         |    4 +-
 drivers/staging/iio/adc/mxs-lradc.c                |   44 +++++++++++++++-----
 2 files changed, 36 insertions(+), 12 deletions(-)

-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-12-26 21:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-22 12:14 [PATCH 0/2] iio: mxs-lradc: check ranges of ts properties Stefan Wahren
     [not found] ` <1419250476-2393-1-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org>
2014-12-22 12:14   ` [PATCH 1/2] DT: mxs-lradc: fix " Stefan Wahren
2014-12-22 12:14   ` [PATCH 2/2] iio: mxs-lradc: check " Stefan Wahren
     [not found]     ` <1419250476-2393-3-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org>
2014-12-23 13:37       ` Marek Vasut
     [not found]         ` <201412231437.22809.marex-ynQEQJNshbs@public.gmane.org>
2014-12-23 22:45           ` Stefan Wahren
     [not found]             ` <1197201553.616296.1419374759245.JavaMail.open-xchange-h4m1HHXQYNFuz1KIG1bTI8gmgJlYmuWJ@public.gmane.org>
2014-12-24  0:35               ` Marek Vasut
     [not found]                 ` <201412240135.21244.marex-ynQEQJNshbs@public.gmane.org>
2014-12-26  9:22                   ` Jonathan Cameron
2014-12-26  9:23       ` Jonathan Cameron
     [not found]         ` <549D2905.4050801-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2014-12-26 20:50           ` Stefan Wahren
     [not found]             ` <1377154085.658607.1419627037868.JavaMail.open-xchange-h4m1HHXQYNHo7+xlP51NjMgmgJlYmuWJ@public.gmane.org>
2014-12-26 21:57               ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).