Skip to content

Commit af3ac8e

Browse files
parakaWim Van Sebroeck
authored andcommitted
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>
1 parent 76ad36b commit af3ac8e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/watchdog/rt2880_wdt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ MODULE_PARM_DESC(nowayout,
5454
"Watchdog cannot be stopped once started (default="
5555
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
5656

57-
static inline void rt_wdt_w32(void __iomem *base, unsigned reg, u32 val)
57+
static inline void rt_wdt_w32(void __iomem *base, unsigned int reg, u32 val)
5858
{
5959
iowrite32(val, base + reg);
6060
}
6161

62-
static inline u32 rt_wdt_r32(void __iomem *base, unsigned reg)
62+
static inline u32 rt_wdt_r32(void __iomem *base, unsigned int reg)
6363
{
6464
return ioread32(base + reg);
6565
}

0 commit comments

Comments
 (0)