Why I did it (#14826)
Midstone platform has compilation error in master branch, fixed the same. How I did it Due to bullseye migration i2c_new_dummy API is deprecated modified with i2c_new_dummy_device. How to verify it Verified target/debs/bullseye/platform-modules-midstone-200i_0.2.2_amd64.deb is generated Co-authored-by: Kannan Selvaraj <skannan@celestica.com>
This commit is contained in:
parent
b23078b52b
commit
2d9be532c1
@ -94,7 +94,7 @@ static int mc24lc64t_probe(struct i2c_client *client,
|
|||||||
sizeof(struct mc24lc64t_data), GFP_KERNEL)))
|
sizeof(struct mc24lc64t_data), GFP_KERNEL)))
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
drvdata->fake_client = i2c_new_dummy(client->adapter, client->addr + 1);
|
drvdata->fake_client = i2c_new_dummy_device(client->adapter, client->addr + 1);
|
||||||
if (!drvdata->fake_client)
|
if (!drvdata->fake_client)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user