summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2016-06-08 10:54:36 -0500
committerLee Jones <lee.jones@linaro.org>2016-06-29 10:14:34 +0100
commitdea1c703f12ee1d141883f4702cf1f7dee32b860 (patch)
tree251fc6490735f92c408e2f798f0cb437b460a3ef
parent4eeb08b4cb8f4d6afc658afc30a6cace2c35c271 (diff)
downloadlinux-stable-dea1c703f12ee1d141883f4702cf1f7dee32b860.tar.gz
linux-stable-dea1c703f12ee1d141883f4702cf1f7dee32b860.tar.bz2
linux-stable-dea1c703f12ee1d141883f4702cf1f7dee32b860.zip
mfd: ti_am335x_tscadc: Use variable name for sizeof() operator
Fix the code formatting to use the kernel preferred style of using the actual variables to determine the size using the sizeof() operator. Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r--drivers/mfd/ti_am335x_tscadc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mfd/ti_am335x_tscadc.c b/drivers/mfd/ti_am335x_tscadc.c
index e4e4b22eebc9..3eb987fe2cf5 100644
--- a/drivers/mfd/ti_am335x_tscadc.c
+++ b/drivers/mfd/ti_am335x_tscadc.c
@@ -182,8 +182,7 @@ static int ti_tscadc_probe(struct platform_device *pdev)
}
/* Allocate memory for device */
- tscadc = devm_kzalloc(&pdev->dev,
- sizeof(struct ti_tscadc_dev), GFP_KERNEL);
+ tscadc = devm_kzalloc(&pdev->dev, sizeof(*tscadc), GFP_KERNEL);
if (!tscadc) {
dev_err(&pdev->dev, "failed to allocate memory.\n");
return -ENOMEM;