Ahmad Fatoum 5edc8c6873 watchdog: f71808e_wdt: do stricter parameter validation
We check the f71862fg_pin module parameter every time a watchdog device
for the f71862fg is opened, but the parameter can't change at runtime.

If we move the check to the start of init:

  - We catch userspace passing invalid, but unused, values
  - We check the condition only once
  - We simplify the code

Do so.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20200611191750.28096-6-a.fatoum@pengutronix.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
2020-08-05 18:42:53 +02:00
..
2020-07-03 16:15:31 +02:00
2020-06-19 13:09:40 -07:00
2020-07-16 11:26:40 -07:00
2020-07-15 15:58:11 -07:00
2020-07-25 13:18:42 -07:00
2020-06-26 23:53:25 +02:00
2020-06-04 11:03:45 -07:00
2020-06-02 15:29:19 -07:00
2020-07-07 21:04:38 +02:00
2020-07-24 18:30:24 -07:00
2020-07-08 18:00:07 +02:00
2020-06-28 01:08:21 +02:00
2020-06-13 13:29:16 -07:00
2020-06-04 19:09:28 +02:00
2020-06-08 13:01:08 -07:00
2020-06-08 13:01:08 -07:00
2020-06-07 16:11:23 -07:00
2020-07-16 22:08:07 +02:00
2020-07-17 10:24:09 -07:00
2020-07-26 09:14:59 -07:00
2020-06-13 13:29:16 -07:00
2020-06-22 12:34:21 -04:00
2020-07-24 18:30:24 -07:00
2020-07-11 11:16:46 -07:00