leds: 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: Bryan Wu <cooloney@gmail.com>
This commit is contained in:
@@ -316,7 +316,7 @@ static const struct regmap_config lm3642_regmap = {
|
||||
static int lm3642_probe(struct i2c_client *client,
|
||||
const struct i2c_device_id *id)
|
||||
{
|
||||
struct lm3642_platform_data *pdata = client->dev.platform_data;
|
||||
struct lm3642_platform_data *pdata = dev_get_platdata(&client->dev);
|
||||
struct lm3642_chip_data *chip;
|
||||
|
||||
int err;
|
||||
|
Reference in New Issue
Block a user