Commit 7b58e240 authored by Alison Schofield's avatar Alison Schofield Committed by Greg Kroah-Hartman

staging: iio: ad5933: use dev_get_platdata()

Use dev_get_platdata() for retrieving the platform data instead of
accessing dev->platform_data directly.
Signed-off-by: default avatarAlison Schofield <amsfield22@gmail.com>
Acked-by: default avatarDaniel Baluta <daniel.baluta@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5e3d1d52
...@@ -699,7 +699,7 @@ static int ad5933_probe(struct i2c_client *client, ...@@ -699,7 +699,7 @@ static int ad5933_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
int ret, voltage_uv = 0; int ret, voltage_uv = 0;
struct ad5933_platform_data *pdata = client->dev.platform_data; struct ad5933_platform_data *pdata = dev_get_platdata(&client->dev);
struct ad5933_state *st; struct ad5933_state *st;
struct iio_dev *indio_dev; struct iio_dev *indio_dev;
......
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