hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/thermal/ti-soc-thermal/ti-bandgap.h
....@@ -1,24 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * OMAP4 Bandgap temperature sensor driver
34 *
45 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
56 * Contact:
67 * Eduardo Valentin <eduardo.valentin@ti.com>
7
- *
8
- * This program is free software; you can redistribute it and/or
9
- * modify it under the terms of the GNU General Public License
10
- * version 2 as published by the Free Software Foundation.
11
- *
12
- * This program is distributed in the hope that it will be useful, but
13
- * WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
- * General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU General Public License
18
- * along with this program; if not, write to the Free Software
19
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20
- * 02110-1301 USA
21
- *
228 */
239 #ifndef __TI_BANDGAP_H
2410 #define __TI_BANDGAP_H
....@@ -26,6 +12,12 @@
2612 #include <linux/spinlock.h>
2713 #include <linux/types.h>
2814 #include <linux/err.h>
15
+#include <linux/cpu_pm.h>
16
+#include <linux/device.h>
17
+#include <linux/pm_runtime.h>
18
+#include <linux/pm.h>
19
+
20
+struct gpio_desc;
2921
3022 /**
3123 * DOC: bandgap driver data structure
....@@ -213,8 +205,10 @@
213205 struct clk *div_clk;
214206 spinlock_t lock; /* shields this struct */
215207 int irq;
216
- int tshut_gpio;
208
+ struct gpio_desc *tshut_gpiod;
217209 u32 clk_rate;
210
+ struct notifier_block nb;
211
+ unsigned int is_suspended:1;
218212 };
219213
220214 /**