temp revert rk change
[firefly-linux-kernel-4.4.55.git] / include / linux / nct1008.h
1 /*
2  * include/linux/nct1008.h
3  *
4  * NCT1008, temperature monitoring device from ON Semiconductors
5  *
6  * Copyright (c) 2010, NVIDIA Corporation.
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
16  * more details.
17  *
18  * You should have received a copy of the GNU General Public License along
19  * with this program; if not, write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21  */
22
23 #ifndef _LINUX_NCT1008_H
24 #define _LINUX_NCT1008_H
25
26 #include <linux/types.h>
27
28 struct nct1008_platform_data {
29         bool supported_hwrev;
30         bool ext_range;
31         u8 conv_rate;
32         u8 offset;
33         u8 hysteresis;
34         u8 shutdown_ext_limit;
35         u8 shutdown_local_limit;
36         u8 throttling_ext_limit;
37         void (*alarm_fn)(bool raised);
38 };
39
40 #endif /* _LINUX_NCT1008_H */