mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
power: supply: mm8013: use accessor for driver data
Instead of directly accessing the structure member, use the accessor. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/r/20241210-power-supply-dev_to_psy-v2-1-9d8c9d24cfe4@weissschuh.net Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
94ba531bf9
commit
e959fdb1cd
|
|
@ -90,7 +90,7 @@ static int mm8013_get_property(struct power_supply *psy,
|
|||
enum power_supply_property psp,
|
||||
union power_supply_propval *val)
|
||||
{
|
||||
struct mm8013_chip *chip = psy->drv_data;
|
||||
struct mm8013_chip *chip = power_supply_get_drvdata(psy);
|
||||
int ret = 0;
|
||||
u32 regval;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user