twl4030_wdt.c (4ba24fef3eb3b142197135223b90ced2f319cd53) twl4030_wdt.c (fb1cbeaeed0f41965ead2714bfc9c579188c6146)
1/*
2 * Copyright (C) Nokia Corporation
3 *
4 * Written by Timo Kokkonen <timo.t.kokkonen at nokia.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 43 unchanged lines hidden (view full) ---

52static int twl4030_wdt_set_timeout(struct watchdog_device *wdt,
53 unsigned int timeout)
54{
55 wdt->timeout = timeout;
56 return 0;
57}
58
59static const struct watchdog_info twl4030_wdt_info = {
1/*
2 * Copyright (C) Nokia Corporation
3 *
4 * Written by Timo Kokkonen <timo.t.kokkonen at nokia.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 43 unchanged lines hidden (view full) ---

52static int twl4030_wdt_set_timeout(struct watchdog_device *wdt,
53 unsigned int timeout)
54{
55 wdt->timeout = timeout;
56 return 0;
57}
58
59static const struct watchdog_info twl4030_wdt_info = {
60 .options = WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING,
60 .options = WDIOF_SETTIMEOUT | WDIOF_MAGICCLOSE | WDIOF_KEEPALIVEPING,
61 .identity = "TWL4030 Watchdog",
62};
63
64static const struct watchdog_ops twl4030_wdt_ops = {
65 .owner = THIS_MODULE,
66 .start = twl4030_wdt_start,
67 .stop = twl4030_wdt_stop,
68 .set_timeout = twl4030_wdt_set_timeout,

--- 85 unchanged lines hidden ---
61 .identity = "TWL4030 Watchdog",
62};
63
64static const struct watchdog_ops twl4030_wdt_ops = {
65 .owner = THIS_MODULE,
66 .start = twl4030_wdt_start,
67 .stop = twl4030_wdt_stop,
68 .set_timeout = twl4030_wdt_set_timeout,

--- 85 unchanged lines hidden ---