mfd: ti_am335x_tscadc: Use variable name for sizeof() operator
authorAndrew F. Davis <afd@ti.com>
Wed, 8 Jun 2016 15:54:36 +0000 (10:54 -0500)
committerLee Jones <lee.jones@linaro.org>
Wed, 29 Jun 2016 09:14:34 +0000 (10:14 +0100)
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>
drivers/mfd/ti_am335x_tscadc.c

index e4e4b22..3eb987f 100644 (file)
@@ -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;