staging: iio: ad5933: use dev_get_platdata()
authorAlison Schofield <amsfield22@gmail.com>
Mon, 14 Mar 2016 06:13:49 +0000 (23:13 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
Use dev_get_platdata() for retrieving the platform data instead of
accessing dev->platform_data directly.

Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Acked-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/impedance-analyzer/ad5933.c

index d1218d89672510990ef92ca85eadaddb2632c52b..428587433c4a3e4f0e0c924160c5162eff48c4a6 100644 (file)
@@ -699,7 +699,7 @@ static int ad5933_probe(struct i2c_client *client,
                                   const struct i2c_device_id *id)
 {
        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 iio_dev *indio_dev;