summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorSergio Paracuellos <sergio.paracuellos@gmail.com>2023-03-01 07:55:10 +0100
committerWim Van Sebroeck <wim@linux-watchdog.org>2023-04-22 12:53:57 +0200
commitaf3ac8e41786440a5ca0fa37628685f8f514f0a6 (patch)
tree54ddac6ac44c97ec723530f9344275ae79b7e31e /drivers/watchdog
parentwatchdog: rt2880-wdt: avoid static global declarations (diff)
downloadlinux-af3ac8e41786440a5ca0fa37628685f8f514f0a6.tar.xz
linux-af3ac8e41786440a5ca0fa37628685f8f514f0a6.zip
watchdog: rt2880-wdt: prefer unsigned int over unsigned
Instead of declare 'reg' variable in read and write operations as a bare 'unsigned' type prefer to declate it as 'unsigned int'. Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20230301065510.2818425-2-sergio.paracuellos@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/rt2880_wdt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/watchdog/rt2880_wdt.c b/drivers/watchdog/rt2880_wdt.c
index e54737bcf939..4499ba0eb5ea 100644
--- a/drivers/watchdog/rt2880_wdt.c
+++ b/drivers/watchdog/rt2880_wdt.c
@@ -54,12 +54,12 @@ MODULE_PARM_DESC(nowayout,
"Watchdog cannot be stopped once started (default="
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
-static inline void rt_wdt_w32(void __iomem *base, unsigned reg, u32 val)
+static inline void rt_wdt_w32(void __iomem *base, unsigned int reg, u32 val)
{
iowrite32(val, base + reg);
}
-static inline u32 rt_wdt_r32(void __iomem *base, unsigned reg)
+static inline u32 rt_wdt_r32(void __iomem *base, unsigned int reg)
{
return ioread32(base + reg);
}