Linux RTC
 help / color / mirror / Atom feed
* [PATCH] rtc: m41t80: Use the unified property API get the wakeup-source property
@ 2024-02-22  1:11 Curtis Klein
  2024-02-29 21:29 ` Alexandre Belloni
  0 siblings, 1 reply; 2+ messages in thread
From: Curtis Klein @ 2024-02-22  1:11 UTC (permalink / raw)
  To: alexandre.belloni, linux-rtc; +Cc: trivial, Curtis Klein

This allows both ACPI and Device Tree systems to specify the m41t80 as a
wakeup-source.

Signed-off-by: Curtis Klein <curtis.klein@hpe.com>
---
 drivers/rtc/rtc-m41t80.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/rtc/rtc-m41t80.c b/drivers/rtc/rtc-m41t80.c
index 866489ad56d6..0013bff0447d 100644
--- a/drivers/rtc/rtc-m41t80.c
+++ b/drivers/rtc/rtc-m41t80.c
@@ -909,10 +909,7 @@ static int m41t80_probe(struct i2c_client *client)
 	if (IS_ERR(m41t80_data->rtc))
 		return PTR_ERR(m41t80_data->rtc);
 
-#ifdef CONFIG_OF
-	wakeup_source = of_property_read_bool(client->dev.of_node,
-					      "wakeup-source");
-#endif
+	wakeup_source = device_property_read_bool(&client->dev, "wakeup-source");
 	if (client->irq > 0) {
 		unsigned long irqflags = IRQF_TRIGGER_LOW;
 
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] rtc: m41t80: Use the unified property API get the wakeup-source property
  2024-02-22  1:11 [PATCH] rtc: m41t80: Use the unified property API get the wakeup-source property Curtis Klein
@ 2024-02-29 21:29 ` Alexandre Belloni
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Belloni @ 2024-02-29 21:29 UTC (permalink / raw)
  To: linux-rtc, Curtis Klein; +Cc: trivial

On Wed, 21 Feb 2024 17:11:29 -0800, Curtis Klein wrote:
> This allows both ACPI and Device Tree systems to specify the m41t80 as a
> wakeup-source.
> 
> 

Applied, thanks!

[1/1] rtc: m41t80: Use the unified property API get the wakeup-source property
      https://git.kernel.org/abelloni/c/3100fd1aa8e4

Best regards,

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-02-29 21:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-22  1:11 [PATCH] rtc: m41t80: Use the unified property API get the wakeup-source property Curtis Klein
2024-02-29 21:29 ` Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox