mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
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: Alison Schofield <amsfield22@gmail.com> Acked-by: Daniel Baluta <daniel.baluta@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5e3d1d520f
commit
7b58e2402f
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue