OSDN Git Service

watchdog: renesas_wdt: avoid (theoretical) type overflow
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 19 Jul 2017 08:27:51 +0000 (10:27 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Sat, 9 Sep 2017 18:23:00 +0000 (20:23 +0200)
commitf6159dd4b085ad839ab02c1ba230535c53ef60d4
tree98c3941f5ae61f4131277595ff355d8f7939d4bf
parent0bade0215ca4337caa00cd72e88bd71a45396b00
watchdog: renesas_wdt: avoid (theoretical) type overflow

Because the smallest clock divider we can select is 1, 'clks_per_sec'
must be the same type as 'rate'.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/renesas_wdt.c