watchdog: i6300esb: do not hardcode heartbeat limits
authorRadu Rendec <rrendec@arista.com>
Thu, 26 Oct 2017 16:10:15 +0000 (17:10 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Thu, 28 Dec 2017 19:45:18 +0000 (20:45 +0100)
commit568d6015dbdef2c437da2fb6e697c43df6a52fea
treecb0f41482ad7fe5db77b7e738595bb8883a456ce
parentcf73120ba43172e181905133cfcc5711485fd4b3
watchdog: i6300esb: do not hardcode heartbeat limits

The minimum, maximum and default values for the watchdog heartbeat
(timeout) were hardcoded in several places (including module parameter
description and warning message for invalid module parameter value).

This patch adds macros for the aforementioned values and replaces all
occurences of hardcoded values by these macros.

Signed-off-by: Radu Rendec <rrendec@arista.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/i6300esb.c