diff options
author | Julia Lawall <Julia.Lawall@inria.fr> | 2021-02-09 22:13:15 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-03-11 20:47:07 +0000 |
commit | b624fd14a9275bd546b63cf103cee6c9f57a4f55 (patch) | |
tree | 91b63115105cd40d6c147ac3e6b0b0c4eacf4902 /drivers/iio/adc | |
parent | 8827faab2c8b52e848071a039a945db6f3ae8365 (diff) | |
download | linux-stable-b624fd14a9275bd546b63cf103cee6c9f57a4f55.tar.gz linux-stable-b624fd14a9275bd546b63cf103cee6c9f57a4f55.tar.bz2 linux-stable-b624fd14a9275bd546b63cf103cee6c9f57a4f55.zip |
iio: use getter/setter functions
Use getter and setter functions, for a variety of data types.
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Link: https://lore.kernel.org/r/20210209211315.1261791-1-Julia.Lawall@inria.fr
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/adc')
-rw-r--r-- | drivers/iio/adc/palmas_gpadc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/palmas_gpadc.c b/drivers/iio/adc/palmas_gpadc.c index 889b88768b63..9ae0d7f73155 100644 --- a/drivers/iio/adc/palmas_gpadc.c +++ b/drivers/iio/adc/palmas_gpadc.c @@ -517,7 +517,7 @@ static int palmas_gpadc_probe(struct platform_device *pdev) adc->palmas = dev_get_drvdata(pdev->dev.parent); adc->adc_info = palmas_gpadc_info; init_completion(&adc->conv_completion); - dev_set_drvdata(&pdev->dev, indio_dev); + platform_set_drvdata(pdev, indio_dev); adc->auto_conversion_period = gpadc_pdata->auto_conversion_period_ms; adc->irq = palmas_irq_get_virq(adc->palmas, PALMAS_GPADC_EOC_SW_IRQ); |