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>
This commit is contained in:
Andrew F. Davis 2016-06-08 10:54:36 -05:00 committed by Lee Jones
parent 4eeb08b4cb
commit dea1c703f1
1 changed files with 1 additions and 2 deletions

View File

@ -182,8 +182,7 @@ static int ti_tscadc_probe(struct platform_device *pdev)
} }
/* Allocate memory for device */ /* Allocate memory for device */
tscadc = devm_kzalloc(&pdev->dev, tscadc = devm_kzalloc(&pdev->dev, sizeof(*tscadc), GFP_KERNEL);
sizeof(struct ti_tscadc_dev), GFP_KERNEL);
if (!tscadc) { if (!tscadc) {
dev_err(&pdev->dev, "failed to allocate memory.\n"); dev_err(&pdev->dev, "failed to allocate memory.\n");
return -ENOMEM; return -ENOMEM;