diff options
author | Ludovic Desroches <ludovic.desroches@atmel.com> | 2016-01-18 09:41:56 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-01-23 16:17:11 +0000 |
commit | 61be8fde635bf4f7eecaf06af23e7db3c318596a (patch) | |
tree | aea94eeb117b3ef6108aeb652a802aa3b1dc6082 /drivers/iio | |
parent | d7bdcc3f57eef075122906e3f38abe2a06868750 (diff) | |
download | linux-61be8fde635bf4f7eecaf06af23e7db3c318596a.tar.bz2 |
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>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/adc/at91-sama5d2_adc.c | 3 |
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 f2d8bd5deac9..dbee13ad33a3 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; |