Commit 61be8fde authored by Ludovic Desroches's avatar Ludovic Desroches Committed by Jonathan Cameron

iio:adc:at91-sama5d2: code cleanup

Use var type for sizeof argument instead of the struct name.
Signed-off-by: default avatarLudovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent d7bdcc3f
...@@ -353,8 +353,7 @@ static int at91_adc_probe(struct platform_device *pdev) ...@@ -353,8 +353,7 @@ static int at91_adc_probe(struct platform_device *pdev)
struct resource *res; struct resource *res;
int ret; int ret;
indio_dev = devm_iio_device_alloc(&pdev->dev, indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(*st));
sizeof(struct at91_adc_state));
if (!indio_dev) if (!indio_dev)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment