linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/2] iio: mxs-lradc: check ranges of ts properties
@ 2014-12-29 10:27 Stefan Wahren
  2014-12-29 10:27 ` [PATCH V2 1/2] DT: mxs-lradc: fix " Stefan Wahren
  2014-12-29 10:27 ` [PATCH V2 2/2] iio: mxs-lradc: check " Stefan Wahren
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Wahren @ 2014-12-29 10:27 UTC (permalink / raw)
  To: jic23
  Cc: festevam, kristina.martsenko, knaack.h, marex, kernel, pawel.moll,
	ijc+devicetree, robh+dt, galak, mark.rutland, linux-iio,
	devicetree, 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 V1:
- fix format specifier in error message
- fix minor style issues

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                |   45 +++++++++++++++-----
 2 files changed, 37 insertions(+), 12 deletions(-)

-- 
1.7.9.5

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

end of thread, other threads:[~2015-01-04 11:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-29 10:27 [PATCH V2 0/2] iio: mxs-lradc: check ranges of ts properties Stefan Wahren
2014-12-29 10:27 ` [PATCH V2 1/2] DT: mxs-lradc: fix " Stefan Wahren
2015-01-04 11:14   ` Jonathan Cameron
2014-12-29 10:27 ` [PATCH V2 2/2] iio: mxs-lradc: check " Stefan Wahren

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).