diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 12:45:48 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 12:45:48 -0400 |
| commit | 92ddcf4a011a95dac98d3bbb0211a2fa42f13dc1 (patch) | |
| tree | ac937fd7cc4d53542c5c299c85df09b1b87bf1c8 /include/linux/platform_data | |
| parent | 000a74f41e601bc4e36a760aa42f219a019c5391 (diff) | |
| parent | 6445e6600fa632448cac64e71119310378464ad9 (diff) | |
Merge tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
Pull hwmon update from Guenter Roeck:
- New drivers for NCT6775, NCT6776, NCT6779, and LM95234.
- Added support for LTC2974, LTC3883, LM25056, TMP431, TMP432, ADT7310,
and ADT7320 to existing drivers.
- Various code cleanups and minor improvements.
* tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: (54 commits)
hwmon: (nct6775) Fix coding style problems
hwmon: (nct6775) Constify strings
hwmon: (tmp401) Add support for TMP432
hwmon: (tmp401) Add support for update_interval attribute
hwmon: (tmp401) Reset valid flag when resetting temperature history
hwmon: (tmp401) Simplification and cleanup
hwmon: (tmp401) Use sysfs_create_group / sysfs_remove_group
hwmon: (tmp401) Drop unused defines, use BIT for bit masks
hwmon: (nct6775) Use ARRAY_SIZE for loops where possible
documentation: hwmon: Fix typo in documentation/hwmon
hwmon: (nct6775) Enable both AUXTIN and VIN3 on NCT6776
hwmon: (ad7314) use spi_get_drvdata() and spi_set_drvdata()
MAINTAINERS: Add myself as maintainer for the NCT6775 driver
hwmon: (nct6775) Expand scope of supported chips
hwmon: (gpio-fan) Use is_visible to determine if attributes should be created
hwmon: (tmp401) Fix device detection for TMP411B and TMP411C
hwmon: Add driver for LM95234
hwmon: (tmp401) Add support for TMP431
hwmon: (pmbus/lm25066) Add support for LM25056
hwmon: (pmbus/lm25066) Refactor device specific coefficients
...
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/ntc_thermistor.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/platform_data/ntc_thermistor.h b/include/linux/platform_data/ntc_thermistor.h index 88734e871e3a..c7285b575462 100644 --- a/include/linux/platform_data/ntc_thermistor.h +++ b/include/linux/platform_data/ntc_thermistor.h | |||
| @@ -21,6 +21,8 @@ | |||
| 21 | #ifndef _LINUX_NTC_H | 21 | #ifndef _LINUX_NTC_H |
| 22 | #define _LINUX_NTC_H | 22 | #define _LINUX_NTC_H |
| 23 | 23 | ||
| 24 | struct iio_channel; | ||
| 25 | |||
| 24 | enum ntc_thermistor_type { | 26 | enum ntc_thermistor_type { |
| 25 | TYPE_NCPXXWB473, | 27 | TYPE_NCPXXWB473, |
| 26 | TYPE_NCPXXWL333, | 28 | TYPE_NCPXXWL333, |
| @@ -39,13 +41,17 @@ struct ntc_thermistor_platform_data { | |||
| 39 | * described at Documentation/hwmon/ntc_thermistor | 41 | * described at Documentation/hwmon/ntc_thermistor |
| 40 | * | 42 | * |
| 41 | * pullup/down_ohm: 0 for infinite / not-connected | 43 | * pullup/down_ohm: 0 for infinite / not-connected |
| 44 | * | ||
| 45 | * chan: iio_channel pointer to communicate with the ADC which the | ||
| 46 | * thermistor is using for conversion of the analog values. | ||
| 42 | */ | 47 | */ |
| 43 | int (*read_uV)(void); | 48 | int (*read_uv)(struct ntc_thermistor_platform_data *); |
| 44 | unsigned int pullup_uV; | 49 | unsigned int pullup_uv; |
| 45 | 50 | ||
| 46 | unsigned int pullup_ohm; | 51 | unsigned int pullup_ohm; |
| 47 | unsigned int pulldown_ohm; | 52 | unsigned int pulldown_ohm; |
| 48 | enum { NTC_CONNECTED_POSITIVE, NTC_CONNECTED_GROUND } connect; | 53 | enum { NTC_CONNECTED_POSITIVE, NTC_CONNECTED_GROUND } connect; |
| 54 | struct iio_channel *chan; | ||
| 49 | 55 | ||
| 50 | int (*read_ohm)(void); | 56 | int (*read_ohm)(void); |
| 51 | }; | 57 | }; |
