.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * LTC2952 (PowerPath) driver |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2014, Xsens Technologies BV <info@xsens.com> |
---|
5 | 6 | * Maintainer: René Moll <linux@r-moll.nl> |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or |
---|
8 | | - * modify it under the terms of the GNU General Public License |
---|
9 | | - * as published by the Free Software Foundation; either version 2 |
---|
10 | | - * of the License, or (at your option) any later version. |
---|
11 | | - * |
---|
12 | | - * This program is distributed in the hope that it will be useful, |
---|
13 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
14 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
15 | | - * GNU General Public License for more details. |
---|
16 | 7 | * |
---|
17 | 8 | * ---------------------------------------- |
---|
18 | 9 | * - Description |
---|
.. | .. |
---|
50 | 41 | * |
---|
51 | 42 | * The driver requires a non-shared, edge-triggered interrupt on the trigger |
---|
52 | 43 | * GPIO. |
---|
53 | | - * |
---|
54 | 44 | */ |
---|
55 | 45 | |
---|
56 | 46 | #include <linux/kernel.h> |
---|
.. | .. |
---|
104 | 94 | { |
---|
105 | 95 | ktime_t now; |
---|
106 | 96 | int state; |
---|
107 | | - unsigned long overruns; |
---|
108 | 97 | struct ltc2952_poweroff *data = to_ltc2952(timer, timer_wde); |
---|
109 | 98 | |
---|
110 | 99 | if (data->kernel_panic) |
---|
.. | .. |
---|
114 | 103 | gpiod_set_value(data->gpio_watchdog, !state); |
---|
115 | 104 | |
---|
116 | 105 | now = hrtimer_cb_get_time(timer); |
---|
117 | | - overruns = hrtimer_forward(timer, now, data->wde_interval); |
---|
| 106 | + hrtimer_forward(timer, now, data->wde_interval); |
---|
118 | 107 | |
---|
119 | 108 | return HRTIMER_RESTART; |
---|
120 | 109 | } |
---|