Input: ti_am335x_tsc - warn about incorrect spelling
authorFelipe Balbi <balbi@ti.com>
Sun, 15 Jun 2014 07:15:09 +0000 (00:15 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 15 Jun 2014 07:28:44 +0000 (00:28 -0700)
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: Felipe Balbi <balbi@ti.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ti_am335x_tsc.c

index 4e793a17361f7b2e02955e7e6e02ece9151f8063..2ce649520fe0d67021509b7e829cf1dbb9858e19 100644 (file)
@@ -359,9 +359,12 @@ static int titsc_parse_dt(struct platform_device *pdev,
         */
        err = of_property_read_u32(node, "ti,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",
                                &ts_dev->coordinate_readouts);
+       }
+
        if (err < 0)
                return err;