diff options
| author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
|---|---|---|
| committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
| commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
| tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /include/linux/adt7461.h | |
| parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) | |
Diffstat (limited to 'include/linux/adt7461.h')
| -rw-r--r-- | include/linux/adt7461.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/include/linux/adt7461.h b/include/linux/adt7461.h new file mode 100644 index 00000000000..36f637ad287 --- /dev/null +++ b/include/linux/adt7461.h | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | /* | ||
| 2 | * include/linux/adt8461.h | ||
| 3 | * | ||
| 4 | * ADT7461, temperature monitoring device from ON Semiconductors | ||
| 5 | * | ||
| 6 | * Copyright (c) 2011, 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_ADT7461_H | ||
| 24 | #define _LINUX_ADT7461_H | ||
| 25 | |||
| 26 | #include <linux/types.h> | ||
| 27 | |||
| 28 | struct adt7461_platform_data { | ||
| 29 | bool supported_hwrev; | ||
| 30 | bool ext_range; | ||
| 31 | bool therm2; | ||
| 32 | u8 conv_rate; | ||
| 33 | u8 offset; | ||
| 34 | u8 hysteresis; | ||
| 35 | u8 shutdown_ext_limit; | ||
| 36 | u8 shutdown_local_limit; | ||
| 37 | u8 throttling_ext_limit; | ||
| 38 | void (*alarm_fn)(bool raised); | ||
| 39 | int irq_gpio; | ||
| 40 | }; | ||
| 41 | |||
| 42 | #endif /* _LINUX_ADT7461_H */ | ||
