Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dea1c703 authored by Andrew F. Davis's avatar Andrew F. Davis Committed by Lee Jones
Browse files

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: default avatarAndrew F. Davis <afd@ti.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 4eeb08b4
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;