Commit 31972f6e authored by Felipe Balbi's avatar Felipe Balbi Committed by Dmitry Torokhov

Input: ti_am335x_tsc - warn about incorrect spelling

In the hopes that people run new kernels on their devices, let's add a
warning message asking users to have their DTS file fixed.

The goal is that by Linux 4.0 we will be able to remove support for the
bogus version of our touchscreen's DTS.
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent d7da3a3c
...@@ -359,9 +359,12 @@ static int titsc_parse_dt(struct platform_device *pdev, ...@@ -359,9 +359,12 @@ static int titsc_parse_dt(struct platform_device *pdev,
*/ */
err = of_property_read_u32(node, "ti,coordinate-readouts", err = of_property_read_u32(node, "ti,coordinate-readouts",
&ts_dev->coordinate_readouts); &ts_dev->coordinate_readouts);
if (err < 0) if (err < 0) {
dev_warn(&pdev->dev, "please use 'ti,coordinate-readouts' instead\n");
err = of_property_read_u32(node, "ti,coordiante-readouts", err = of_property_read_u32(node, "ti,coordiante-readouts",
&ts_dev->coordinate_readouts); &ts_dev->coordinate_readouts);
}
if (err < 0) if (err < 0)
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment