summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Desroches <ludovic.desroches@atmel.com>2016-01-18 08:41:56 (GMT)
committerJonathan Cameron <jic23@kernel.org>2016-01-23 16:17:11 (GMT)
commit61be8fde635bf4f7eecaf06af23e7db3c318596a (patch)
treeaea94eeb117b3ef6108aeb652a802aa3b1dc6082
parentd7bdcc3f57eef075122906e3f38abe2a06868750 (diff)
downloadlinux-61be8fde635bf4f7eecaf06af23e7db3c318596a.tar.xz
iio:adc:at91-sama5d2: code cleanup
Use var type for sizeof argument instead of the struct name. Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r--drivers/iio/adc/at91-sama5d2_adc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iio/adc/at91-sama5d2_adc.c b/drivers/iio/adc/at91-sama5d2_adc.c
index f2d8bd5..dbee13a 100644
--- a/drivers/iio/adc/at91-sama5d2_adc.c
+++ b/drivers/iio/adc/at91-sama5d2_adc.c
@@ -353,8 +353,7 @@ static int at91_adc_probe(struct platform_device *pdev)
struct resource *res;
int ret;
- indio_dev = devm_iio_device_alloc(&pdev->dev,
- sizeof(struct at91_adc_state));
+ indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(*st));
if (!indio_dev)
return -ENOMEM;