[PATCH] power: supply: sgm41542: Use secs_to_jiffies()

From: Aryan Sinha

Date: Fri Oct 16 2026 - 06:16:15 EST


Both watchdog kicks are a flat five seconds written the long way. Use
secs_to_jiffies() from the same header instead.

Signed-off-by: Aryan Sinha <sinha.aryan03@xxxxxxxxx>
---
drivers/power/supply/sgm41542_charger.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/power/supply/sgm41542_charger.c b/drivers/power/supply/sgm41542_charger.c
index 888096252..118b4c700 100644
--- a/drivers/power/supply/sgm41542_charger.c
+++ b/drivers/power/supply/sgm41542_charger.c
@@ -468,7 +468,7 @@ static int sgm4154x_set_watchdog_timer(struct sgm4154x_device *sgm, u8 time)
if (!sgm->watchdog_enable)
queue_delayed_work(sgm->sgm_monitor_wq,
&sgm->sgm_delay_work,
- msecs_to_jiffies(1000 * 5));
+ secs_to_jiffies(5));
sgm->watchdog_enable = true;
} else {
sgm->watchdog_enable = false;
@@ -970,7 +970,7 @@ static void sgm_charger_work(struct work_struct *work)
if (sgm->watchdog_enable)
queue_delayed_work(sgm->sgm_monitor_wq,
&sgm->sgm_delay_work,
- msecs_to_jiffies(1000 * 5));
+ secs_to_jiffies(5));
}

static void sgm4154x_disable_irq_wake(void *data)
--
2.46.0