All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rtc: don't reference bogus function pointer in kdoc
@ 2019-04-03 15:19 Wolfram Sang
  2019-04-03 21:00 ` Alexandre Belloni
  0 siblings, 1 reply; 2+ messages in thread
From: Wolfram Sang @ 2019-04-03 15:19 UTC (permalink / raw)
  To: linux-rtc; +Cc: linux-renesas-soc, Wolfram Sang

The mentioned function pointer is long gone since early 2011. Remove the
reference in the comment and reword it slightly.

Fixes: 51ba60c5bb3b ("RTC: Cleanup rtc_class_ops->update_irq_enable()")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---

I stumbled over this when trying to understand UIE handling during my
DA9063 debugging session.

 drivers/rtc/interface.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/rtc/interface.c b/drivers/rtc/interface.c
index 98d9c87b0d1b..4ac33b931f3d 100644
--- a/drivers/rtc/interface.c
+++ b/drivers/rtc/interface.c
@@ -571,10 +571,9 @@ int rtc_update_irq_enable(struct rtc_device *rtc, unsigned int enabled)
 	mutex_unlock(&rtc->ops_lock);
 #ifdef CONFIG_RTC_INTF_DEV_UIE_EMUL
 	/*
-	 * Enable emulation if the driver did not provide
-	 * the update_irq_enable function pointer or if returned
-	 * -EINVAL to signal that it has been configured without
-	 * interrupts or that are not available at the moment.
+	 * Enable emulation if the driver returned -EINVAL to signal that it has
+	 * been configured without interrupts or they are not available at the
+	 * moment.
 	 */
 	if (err == -EINVAL)
 		err = rtc_dev_update_irq_enable_emul(rtc, enabled);
-- 
2.19.1


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

* Re: [PATCH] rtc: don't reference bogus function pointer in kdoc
  2019-04-03 15:19 [PATCH] rtc: don't reference bogus function pointer in kdoc Wolfram Sang
@ 2019-04-03 21:00 ` Alexandre Belloni
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Belloni @ 2019-04-03 21:00 UTC (permalink / raw)
  To: Wolfram Sang; +Cc: linux-rtc, linux-renesas-soc

On 03/04/2019 17:19:52+0200, Wolfram Sang wrote:
> The mentioned function pointer is long gone since early 2011. Remove the
> reference in the comment and reword it slightly.
> 
> Fixes: 51ba60c5bb3b ("RTC: Cleanup rtc_class_ops->update_irq_enable()")
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> ---
> 
> I stumbled over this when trying to understand UIE handling during my
> DA9063 debugging session.
> 
>  drivers/rtc/interface.c | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
> 
Applied, thanks.

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

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

end of thread, other threads:[~2019-04-03 21:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-03 15:19 [PATCH] rtc: don't reference bogus function pointer in kdoc Wolfram Sang
2019-04-03 21:00 ` Alexandre Belloni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.