Thread (15 messages) 15 messages, 4 authors, 2014-06-15

Re: [PATCH 1/2] input: touchscreen: fix spelling mistake in TSC/ADC DT binding

From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date: 2013-10-22 08:42:00
Also in: linux-devicetree, linux-omap

On 10/21/2013 10:13 PM, Felipe Balbi wrote:
quoted hunk ↗ jump to hunk
diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c
index e1c5300..b61df9d 100644
--- a/drivers/input/touchscreen/ti_am335x_tsc.c
+++ b/drivers/input/touchscreen/ti_am335x_tsc.c
@@ -348,9 +348,16 @@ static int titsc_parse_dt(struct platform_device *pdev,
 	if (err < 0)
 		return err;
 
-	err = of_property_read_u32(node, "ti,coordiante-readouts",
+	/*
+	 * try with new binding first. If it fails, still try with
+	 * bogus, miss-spelled version.
+	 */
+	err = of_property_read_u32(node, "ti,coordinate-readouts",
 			&ts_dev->coordinate_readouts);
 	if (err < 0)
+		err = of_property_read_u32(node, "ti,coordiante-readouts",
+				&ts_dev->coordinate_readouts);
+	if (err < 0)
 		return err;
Thanks, very good. Do we keep this fallback for ever or just for a year
or two?
 
 	return of_property_read_u32_array(node, "ti,wire-config",
Sebastian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help