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:
Thomas Weißschuh 2024-12-10 22:55:48 +01:00 committed by Sebastian Reichel
parent 94ba531bf9
commit e959fdb1cd

View File

@ -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;