diff options
author | Nizam Haider <nizamhaider786@gmail.com> | 2015-11-23 23:37:16 +0530 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-12-02 18:42:06 +0000 |
commit | 7221819ac48195ea9f1e179c3f812939319d9e7b (patch) | |
tree | 5bb7caf5fb89dfacbaa8a561adcf5ba431e75415 | |
parent | a260527f83dfebe7c49bd6582ed6aa1be29f355a (diff) | |
download | linux-stable-7221819ac48195ea9f1e179c3f812939319d9e7b.tar.gz linux-stable-7221819ac48195ea9f1e179c3f812939319d9e7b.tar.bz2 linux-stable-7221819ac48195ea9f1e179c3f812939319d9e7b.zip |
Staging: iio: frequency: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly.
Signed-off-by: Nizam Haider <nijamh@cdac.in>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/staging/iio/frequency/ad9832.c | 2 | ||||
-rw-r--r-- | drivers/staging/iio/frequency/ad9834.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/iio/frequency/ad9832.c b/drivers/staging/iio/frequency/ad9832.c index 2b65faa6296a..18b27a1984b2 100644 --- a/drivers/staging/iio/frequency/ad9832.c +++ b/drivers/staging/iio/frequency/ad9832.c @@ -201,7 +201,7 @@ static const struct iio_info ad9832_info = { static int ad9832_probe(struct spi_device *spi) { - struct ad9832_platform_data *pdata = spi->dev.platform_data; + struct ad9832_platform_data *pdata = dev_get_platdata(&spi->dev); struct iio_dev *indio_dev; struct ad9832_state *st; struct regulator *reg; diff --git a/drivers/staging/iio/frequency/ad9834.c b/drivers/staging/iio/frequency/ad9834.c index 6464f2cbe94b..6366216e4f37 100644 --- a/drivers/staging/iio/frequency/ad9834.c +++ b/drivers/staging/iio/frequency/ad9834.c @@ -318,7 +318,7 @@ static const struct iio_info ad9833_info = { static int ad9834_probe(struct spi_device *spi) { - struct ad9834_platform_data *pdata = spi->dev.platform_data; + struct ad9834_platform_data *pdata = dev_get_platdata(&spi->dev); struct ad9834_state *st; struct iio_dev *indio_dev; struct regulator *reg; |