hwmon: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:

committed by
Guenter Roeck

parent
f58876ac8c
commit
a8b3a3a53f
@@ -145,7 +145,7 @@ static int ads7828_remove(struct i2c_client *client)
|
||||
static int ads7828_probe(struct i2c_client *client,
|
||||
const struct i2c_device_id *id)
|
||||
{
|
||||
struct ads7828_platform_data *pdata = client->dev.platform_data;
|
||||
struct ads7828_platform_data *pdata = dev_get_platdata(&client->dev);
|
||||
struct ads7828_data *data;
|
||||
int err;
|
||||
|
||||
|
Reference in New Issue
Block a user