[PATCH v2 0/2] power: supply: wm97xx: Use devm-variants in probe

Waqar Hameed posted 2 patches 2 weeks ago
drivers/power/supply/wm97xx_battery.c | 32 ++++++++-------------------
1 file changed, 9 insertions(+), 23 deletions(-)
[PATCH v2 0/2] power: supply: wm97xx: Use devm-variants in probe
Posted by Waqar Hameed 2 weeks ago
This patch series contains some clean-ups that makes life a little
easier. It was originally triggered by a NULL pointer fix in this driver
that has already been applied from the previous version [1]. Therefore
note that this series is based on `for-next` branch in Sebastian
Reichel's tree [2].

[1] https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git/commit/?h=for-next&id=39fe0eac6d755ef215026518985fcf8de9360e9e
[2] https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git/?h=for-next

Changes in v2:

* Fix clean-up order by applying `devm_kcalloc()`-patch before the
  `devm_power_supply_register()`-patch.

Link to v1: https://lore.kernel.org/lkml/cover.1766270196.git.waqar.hameed@axis.com/

Waqar Hameed (2):
  power: supply: wm97xx: Use devm_kcalloc()
  power: supply: wm97xx: Use devm_power_supply_register()

 drivers/power/supply/wm97xx_battery.c | 32 ++++++++-------------------
 1 file changed, 9 insertions(+), 23 deletions(-)


base-commit: 432b119ab8d8bf1f550c247f7fbe960e87ba6c92
-- 
2.39.5
Re: [PATCH v2 0/2] power: supply: wm97xx: Use devm-variants in probe
Posted by Sebastian Reichel 1 week ago
On Fri, 23 Jan 2026 09:55:42 +0100, Waqar Hameed wrote:
> This patch series contains some clean-ups that makes life a little
> easier. It was originally triggered by a NULL pointer fix in this driver
> that has already been applied from the previous version [1]. Therefore
> note that this series is based on `for-next` branch in Sebastian
> Reichel's tree [2].
> 
> [1] https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git/commit/?h=for-next&id=39fe0eac6d755ef215026518985fcf8de9360e9e
> [2] https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git/?h=for-next
> 
> [...]

Applied, thanks!

[1/2] power: supply: wm97xx: Use devm_kcalloc()
      commit: 72db889394d89ffde61e7438f0cdfc0135c9da48
[2/2] power: supply: wm97xx: Use devm_power_supply_register()
      commit: 3db37475d78ed0c2857f289a535dd44b045a904a

Best regards,
-- 
Sebastian Reichel <sebastian.reichel@collabora.com>