|
111 | 111 | #define MIN_TIMEOUT (1 * 60)
|
112 | 112 | #define MAX_TIMEOUT (255 * 60)
|
113 | 113 |
|
114 |
| -static int timeout = WATCHDOG_TIMEOUT; |
| 114 | +static int timeout; |
115 | 115 | module_param(timeout, int, 0);
|
116 | 116 | MODULE_PARM_DESC(timeout, "Watchdog timeout in minutes. 1 <= timeout <= 255, default="
|
117 |
| - __MODULE_STRING(WATCHODOG_TIMEOUT) "."); |
| 117 | + __MODULE_STRING(WATCHDOG_TIMEOUT) "."); |
118 | 118 |
|
119 | 119 | static bool nowayout = WATCHDOG_NOWAYOUT;
|
120 | 120 | module_param(nowayout, bool, 0);
|
121 |
| -MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started once started (default=" |
| 121 | +MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" |
122 | 122 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
123 | 123 |
|
124 | 124 | static const unsigned short normal_i2c[] = {
|
@@ -1147,7 +1147,7 @@ static int nct7904_probe(struct i2c_client *client,
|
1147 | 1147 | data->wdt.ops = &nct7904_wdt_ops;
|
1148 | 1148 | data->wdt.info = &nct7904_wdt_info;
|
1149 | 1149 |
|
1150 |
| - data->wdt.timeout = timeout * 60; /* in seconds */ |
| 1150 | + data->wdt.timeout = WATCHDOG_TIMEOUT * 60; /* Set default timeout */ |
1151 | 1151 | data->wdt.min_timeout = MIN_TIMEOUT;
|
1152 | 1152 | data->wdt.max_timeout = MAX_TIMEOUT;
|
1153 | 1153 | data->wdt.parent = &client->dev;
|
|
0 commit comments