power: supply: axp288_fuel_gauge: Store struct device pointer in axp288_fg_info
authorHans de Goede <hdegoede@redhat.com>
Sun, 1 Aug 2021 13:31:01 +0000 (15:31 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 5 Aug 2021 16:54:52 +0000 (18:54 +0200)
commit7eef3e663834476946ecd4a43b4e1a2cb2bc9884
tree75f2fd4146fa9566df010426784406060812fc95
parentf17bda7f655fa5ede982a487b8f6d732bbe1959a
power: supply: axp288_fuel_gauge: Store struct device pointer in axp288_fg_info

Directly store the struct device pointer in axp288_fg_info, rather then
storing a pointer to the struct platform_device there and then using
"&info->pdev->dev" everywhere.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/axp288_fuel_gauge.c