hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/power/reset/ltc2952-poweroff.c
....@@ -1,18 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * LTC2952 (PowerPath) driver
34 *
45 * Copyright (C) 2014, Xsens Technologies BV <info@xsens.com>
56 * 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.
167 *
178 * ----------------------------------------
189 * - Description
....@@ -50,7 +41,6 @@
5041 *
5142 * The driver requires a non-shared, edge-triggered interrupt on the trigger
5243 * GPIO.
53
- *
5444 */
5545
5646 #include <linux/kernel.h>
....@@ -104,7 +94,6 @@
10494 {
10595 ktime_t now;
10696 int state;
107
- unsigned long overruns;
10897 struct ltc2952_poweroff *data = to_ltc2952(timer, timer_wde);
10998
11099 if (data->kernel_panic)
....@@ -114,7 +103,7 @@
114103 gpiod_set_value(data->gpio_watchdog, !state);
115104
116105 now = hrtimer_cb_get_time(timer);
117
- overruns = hrtimer_forward(timer, now, data->wde_interval);
106
+ hrtimer_forward(timer, now, data->wde_interval);
118107
119108 return HRTIMER_RESTART;
120109 }