]> git.itanic.dy.fi Git - linux-stable/commitdiff
watchdog: rt2880-wdt: prefer unsigned int over unsigned
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Wed, 1 Mar 2023 06:55:10 +0000 (07:55 +0100)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 22 Apr 2023 10:53:57 +0000 (12:53 +0200)
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>
drivers/watchdog/rt2880_wdt.c

index e54737bcf9397d76c087d10cfda49e504dcbc610..4499ba0eb5ea8eef03e4feae5174888d1ab21437 100644 (file)
@@ -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);
 }