]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit540660c2e97c14c1c7e73162271ded44ed3bc334
tree98c3941f5ae61f4131277595ff355d8f7939d4bf
parent8751d309750fa2556f2975bd5e0cd33621ba7c5f
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