diff options
author | Guenter Roeck | 2017-01-22 08:46:47 +0100 |
---|---|---|
committer | Dmitry Torokhov | 2017-01-22 08:53:17 +0100 |
commit | d7ddf15414dd598b9b875664e6b7aebe6c988f5d (patch) | |
tree | 3abd8a2b6d967614fc1fb2c67706e38794b52539 /drivers/input/touchscreen/fsl-imx25-tcq.c | |
parent | Input: mouse - use local variables consistently (diff) | |
download | kernel-qcow2-linux-d7ddf15414dd598b9b875664e6b7aebe6c988f5d.tar.gz kernel-qcow2-linux-d7ddf15414dd598b9b875664e6b7aebe6c988f5d.tar.xz kernel-qcow2-linux-d7ddf15414dd598b9b875664e6b7aebe6c988f5d.zip |
Input: touchscreen - use local variables consistently
If a function declares a variable to access a structure element,
use it consistently.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/fsl-imx25-tcq.c')
-rw-r--r-- | drivers/input/touchscreen/fsl-imx25-tcq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/fsl-imx25-tcq.c b/drivers/input/touchscreen/fsl-imx25-tcq.c index d50ee490c9cc..47fe1f184bbc 100644 --- a/drivers/input/touchscreen/fsl-imx25-tcq.c +++ b/drivers/input/touchscreen/fsl-imx25-tcq.c @@ -507,7 +507,7 @@ static int mx25_tcq_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct input_dev *idev; struct mx25_tcq_priv *priv; - struct mx25_tsadc *tsadc = dev_get_drvdata(pdev->dev.parent); + struct mx25_tsadc *tsadc = dev_get_drvdata(dev->parent); struct resource *res; void __iomem *mem; int error; |