On Fri Feb 16, 2024 at 10:02 PM CET, Pohsun Su wrote: [...] > diff --git a/drivers/clocksource/timer-tegra186.c b/drivers/clocksource/timer-tegra186.c [...] > @@ -234,12 +239,49 @@ static int tegra186_wdt_set_timeout(struct watchdog_device *wdd, > return 0; > } > > +static unsigned int tegra186_wdt_get_timeleft(struct watchdog_device *wdd) > +{ > + struct tegra186_wdt *wdt = to_tegra186_wdt(wdd); > + u32 timeleft; > + u32 expiration; One more thing I noticed: you could put both of these declarations on a single line to make this a bit more compact. Thierry
Attachment:
signature.asc
Description: PGP signature