]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
power: supply: wm97xx: Use devm_power_supply_register()
authorWaqar Hameed <waqar.hameed@axis.com>
Fri, 23 Jan 2026 08:55:43 +0000 (09:55 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 30 Jan 2026 19:57:32 +0000 (20:57 +0100)
commit3db37475d78ed0c2857f289a535dd44b045a904a
treea5c828302aa385430f3b6c82638a923377f93c0c
parent72db889394d89ffde61e7438f0cdfc0135c9da48
power: supply: wm97xx: Use devm_power_supply_register()

Instead of handling the registration manually, use the automatic
`devres` variant `devm_power_supply_register()`. This is less error
prone and cleaner.

Signed-off-by: Waqar Hameed <waqar.hameed@axis.com>
Link: https://patch.msgid.link/b0b366d302f0605c8555dd68ed32973959f133bb.1769158280.git.waqar.hameed@axis.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/wm97xx_battery.c