Skip to content
Commit 6480af49 authored by Robert Jarzmik's avatar Robert Jarzmik Committed by Sebastian Reichel
Browse files

power_supply: wm97xx_battery: use power_supply_get_drvdata



As the power supply framework provides a way to store and retrieve
private supply data, use it.

In the process, change the platform data for wm97xx_battery from a
container of a single struct wm97xx_batt_pdata to the direct point to wm97xx_batt_pdata.

Signed-off-by: default avatarRobert Jarzmik <robert.jarzmik@free.fr>
Acked-by: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent 8d4124cb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment