From: Andrew F. Davis Date: Wed, 8 Jun 2016 15:54:36 +0000 (-0500) Subject: mfd: ti_am335x_tscadc: Use variable name for sizeof() operator X-Git-Tag: v4.8-rc1~78^2~29 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=dea1c703f12ee1d141883f4702cf1f7dee32b860;p=linux.git 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 Signed-off-by: Lee Jones --- 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;