summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2024-11-05 09:14:58 +0100
committerThomas Gleixner <tglx@linutronix.de>2024-11-07 02:14:46 +0100
commit2634303f8773b0c602069887565cd412440be15d (patch)
treeb7d5bfba3ae44853c0cfca64d9ec34b8ee038b4a /drivers
parentalarmtimers: Remove the throttle mechanism from alarm_forward_now() (diff)
downloadlinux-2634303f8773b0c602069887565cd412440be15d.tar.xz
linux-2634303f8773b0c602069887565cd412440be15d.zip
alarmtimers: Remove return value from alarm functions
Now that the SIG_IGN problem is solved in the core code, the alarmtimer callbacks do not require a return value anymore. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Frederic Weisbecker <frederic@kernel.org> Link: https://lore.kernel.org/all/20241105064214.318837272@linutronix.de
Diffstat (limited to 'drivers')
-rw-r--r--drivers/power/supply/charger-manager.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/power/supply/charger-manager.c b/drivers/power/supply/charger-manager.c
index 96f0a7fbf105..09ec0ecf1486 100644
--- a/drivers/power/supply/charger-manager.c
+++ b/drivers/power/supply/charger-manager.c
@@ -1412,10 +1412,9 @@ static inline struct charger_desc *cm_get_drv_data(struct platform_device *pdev)
return dev_get_platdata(&pdev->dev);
}
-static enum alarmtimer_restart cm_timer_func(struct alarm *alarm, ktime_t now)
+static void cm_timer_func(struct alarm *alarm, ktime_t now)
{
cm_timer_set = false;
- return ALARMTIMER_NORESTART;
}
static int charger_manager_probe(struct platform_device *pdev)