aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/imx6ul_tsc.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2015-09-14 10:37:31 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-09-19 11:41:54 -0700
commit5eab3cf3e48cf658f3432e8ba31436d5a4f6a219 (patch)
treeb4e63006aced575a7998e3fbc006942141a773c0 /drivers/input/touchscreen/imx6ul_tsc.c
parentInput: imx6ul_tsc - check for negative return value (diff)
downloadlinux-dev-5eab3cf3e48cf658f3432e8ba31436d5a4f6a219.tar.xz
linux-dev-5eab3cf3e48cf658f3432e8ba31436d5a4f6a219.zip
Input: imx6ul_tsc - use the preferred method for kzalloc()
According to Documentation/CodingStyle: "The preferred form for passing a size of a struct is the following: p = kmalloc(sizeof(*p), ...);" so do as suggested. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/imx6ul_tsc.c')
-rw-r--r--drivers/input/touchscreen/imx6ul_tsc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/imx6ul_tsc.c b/drivers/input/touchscreen/imx6ul_tsc.c
index 4957d8b6ca59..67c73f2e7e3a 100644
--- a/drivers/input/touchscreen/imx6ul_tsc.c
+++ b/drivers/input/touchscreen/imx6ul_tsc.c
@@ -347,7 +347,7 @@ static int imx6ul_tsc_probe(struct platform_device *pdev)
int tsc_irq;
int adc_irq;
- tsc = devm_kzalloc(&pdev->dev, sizeof(struct imx6ul_tsc), GFP_KERNEL);
+ tsc = devm_kzalloc(&pdev->dev, sizeof(*tsc), GFP_KERNEL);
if (!tsc)
return -ENOMEM;