mbox series

[v3,0/3] rtc: tps6594: Add power management support

Message ID 20240618141851.1810000-1-richard.genoud@bootlin.com
Headers show
Series rtc: tps6594: Add power management support | expand

Message

Richard GENOUD June 18, 2024, 2:18 p.m. UTC
This series add power management support for tps6594_rtc.

The 1st patch fixes a memleak found in the probe()
The 2nd patch simply introduce a private structure as drvdata that will
be used in the 3rd patch. (no functionnal change)
The 3rd patch introduce the power management support.

Changes in v3:
 - Fix a memleak found in probe()
 - introduce a private structure to prevent squatting the mfd structure
   (struct tps6594) with rtc-only related stuff.

Changes in v2:
 - use DEFINE_SIMPLE_DEV_PM_OPS instead of deprecated SIMPLE_DEV_PM_OPS
   (This fixes the defined but unsed warning when CONFIG_PM is unset)

Richard Genoud (3):
  rtc: tps6594: Fix memleak in probe
  rtc: tps6594: introduce private structure as drvdata
  rtc: tps6594: Add power management support

 drivers/rtc/rtc-tps6594.c | 75 ++++++++++++++++++++++++++++++++-------
 1 file changed, 63 insertions(+), 12 deletions(-)

Comments

Alexandre Belloni June 27, 2024, 10:22 p.m. UTC | #1
On Tue, 18 Jun 2024 16:18:48 +0200, Richard Genoud wrote:
> This series add power management support for tps6594_rtc.
> 
> The 1st patch fixes a memleak found in the probe()
> The 2nd patch simply introduce a private structure as drvdata that will
> be used in the 3rd patch. (no functionnal change)
> The 3rd patch introduce the power management support.
> 
> [...]

Applied, thanks!

[1/3] rtc: tps6594: Fix memleak in probe
      https://git.kernel.org/abelloni/c/94d4154792ab
[2/3] rtc: tps6594: introduce private structure as drvdata
      https://git.kernel.org/abelloni/c/29bf97586f18
[3/3] rtc: tps6594: Add power management support
      https://git.kernel.org/abelloni/c/c88014c7aa5c

Best regards,