Commit d3911f16 authored by Nikita Travkin's avatar Nikita Travkin Committed by Sebastian Reichel
Browse files

power: supply: rt5033: Bring back i2c_set_clientdata



Commit 3a93da23 ("power: supply: rt5033: Use devm_power_supply_register() helper")
reworked the driver to use devm. While at it, the i2c_set_clientdata
was dropped along with the remove callback. Unfortunately other parts
of the driver also rely on i2c clientdata so this causes kernel oops.

Bring the call back to fix the driver.

Fixes: 3a93da23 ("power: supply: rt5033: Use devm_power_supply_register() helper")
Tested-by: default avatarRaymond Hackley <raymondhackley@protonmail.com>
Signed-off-by: default avatarNikita Travkin <nikita@trvn.ru>
Link: https://lore.kernel.org/r/20240605-rt5033-null-clientdata-v1-1-558d710eeb4d@trvn.ru


Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 1613e604
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment