Commit 7221819a authored by Nizam Haider's avatar Nizam Haider Committed by Jonathan Cameron

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: default avatarNizam Haider <nijamh@cdac.in>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent a260527f
...@@ -201,7 +201,7 @@ static const struct iio_info ad9832_info = { ...@@ -201,7 +201,7 @@ static const struct iio_info ad9832_info = {
static int ad9832_probe(struct spi_device *spi) 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 iio_dev *indio_dev;
struct ad9832_state *st; struct ad9832_state *st;
struct regulator *reg; struct regulator *reg;
......
...@@ -318,7 +318,7 @@ static const struct iio_info ad9833_info = { ...@@ -318,7 +318,7 @@ static const struct iio_info ad9833_info = {
static int ad9834_probe(struct spi_device *spi) 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 ad9834_state *st;
struct iio_dev *indio_dev; struct iio_dev *indio_dev;
struct regulator *reg; struct regulator *reg;
......
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