diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2015-09-14 10:37:31 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-09-19 11:41:54 -0700 |
commit | 5eab3cf3e48cf658f3432e8ba31436d5a4f6a219 (patch) | |
tree | b4e63006aced575a7998e3fbc006942141a773c0 /drivers/input/touchscreen/imx6ul_tsc.c | |
parent | 3905de62b2624a4574776b3b7ddfa97758b75edc (diff) | |
download | lwn-5eab3cf3e48cf658f3432e8ba31436d5a4f6a219.tar.gz lwn-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.c | 2 |
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; |