You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
mfd: 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: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
@@ -1189,7 +1189,7 @@ static int menelaus_probe(struct i2c_client *client,
|
||||
int rev = 0, val;
|
||||
int err = 0;
|
||||
struct menelaus_platform_data *menelaus_pdata =
|
||||
client->dev.platform_data;
|
||||
dev_get_platdata(&client->dev);
|
||||
|
||||
if (the_menelaus) {
|
||||
dev_dbg(&client->dev, "only one %s for now\n",
|
||||
|
||||
Reference in New Issue
Block a user