mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 15:55:28 -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:
committed by
Greg Kroah-Hartman
parent
5e3d1d520f
commit
7b58e2402f
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user