diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-01 16:50:06 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-01 16:50:06 -0400 |
| commit | cc150a2861e744d8f574d571762cc7e9f928abb3 (patch) | |
| tree | a1567d76fc52dc56ba483d7dafa82fada5fc28ba /include/linux/platform_data | |
| parent | d9a807461fc8cc0d6ba589ea0730d139122af012 (diff) | |
| parent | 592758b12f2e327bb5902dabd3d36b2e86049871 (diff) | |
Merge tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
Pull hwmon updates from Guenter Roeck:
"New drivers for: MCP3221, ADT7410, MAX197
Chip support added to existing drivers: LM71, LM74, MAX1110, MAX1112,
MAX1113, INA220, INA230, MCP3221
Cleanup: Use devm_ functions, fixed build warnings, removed deprecated
sysfs attributes, code simplifications, dropped dependencies on
EXPERIMENTAL"
* tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: (64 commits)
hwmon: (mcp3021) Add MCP3221 support
hwmon: (mcp3021) Prepare MCP3021 driver to support other chips
hwmon: (w83791d) Drop unnecessary compare statements
hwmon: (lm93) Drop unnecessary compare statement
hwmon: (lm70) Simplify show_name function
hwmon: (adcxx) Simplify show_name function
hwmon: Drop dependencies on EXPERIMENTAL
hwmon: (it87) Fix Kconfig for IT87 driver
hwmon: (sht15) move header to linux/platform_data/
hwmon: (asus_atk0110) Remove useless kfree
hwmon: (ina2xx) Add support for INA220 and INA230
hwmon: (ina2xx) Use structure array to distinguish chip types
hwmon: (max1111) Add support for MAX1110, MAX1112, and MAX1113
hwmon: (lm70) Add support for LM71 and LM74
hwmon: (Documentation) Update feature-removal-schedule.txt
hwmon: (w83793) Remove legacy chassis intrusion detection sysfs attributes
hwmon: (w83792d) Remove legacy chassis intrusion detection attributes
hwmon: (adm9240) Remove legacy chassis intrusion detection sysfs attribute
hwmon: (lm70) Allow 4wire SPI bus with LM70
hwmon: (sht15) remove multiple driver registration
...
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/max197.h | 21 | ||||
| -rw-r--r-- | include/linux/platform_data/sht15.h | 33 |
2 files changed, 54 insertions, 0 deletions
diff --git a/include/linux/platform_data/max197.h b/include/linux/platform_data/max197.h new file mode 100644 index 000000000000..e2a41dd7690c --- /dev/null +++ b/include/linux/platform_data/max197.h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | /* | ||
| 2 | * Maxim MAX197 A/D Converter Driver | ||
| 3 | * | ||
| 4 | * Copyright (c) 2012 Savoir-faire Linux Inc. | ||
| 5 | * Vivien Didelot <vivien.didelot@savoirfairelinux.com> | ||
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License version 2 as | ||
| 9 | * published by the Free Software Foundation. | ||
| 10 | * | ||
| 11 | * For further information, see the Documentation/hwmon/max197 file. | ||
| 12 | */ | ||
| 13 | |||
| 14 | /** | ||
| 15 | * struct max197_platform_data - MAX197 connectivity info | ||
| 16 | * @convert: Function used to start a conversion with control byte ctrl. | ||
| 17 | * It must return the raw data, or a negative error code. | ||
| 18 | */ | ||
| 19 | struct max197_platform_data { | ||
| 20 | int (*convert)(u8 ctrl); | ||
| 21 | }; | ||
diff --git a/include/linux/platform_data/sht15.h b/include/linux/platform_data/sht15.h new file mode 100644 index 000000000000..33e0fd27225e --- /dev/null +++ b/include/linux/platform_data/sht15.h | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | /* | ||
| 2 | * sht15.h - support for the SHT15 Temperature and Humidity Sensor | ||
| 3 | * | ||
| 4 | * Copyright (c) 2009 Jonathan Cameron | ||
| 5 | * | ||
| 6 | * Copyright (c) 2007 Wouter Horre | ||
| 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 version 2 as | ||
| 10 | * published by the Free Software Foundation. | ||
| 11 | * | ||
| 12 | * For further information, see the Documentation/hwmon/sht15 file. | ||
| 13 | */ | ||
| 14 | |||
| 15 | /** | ||
| 16 | * struct sht15_platform_data - sht15 connectivity info | ||
| 17 | * @gpio_data: no. of gpio to which bidirectional data line is | ||
| 18 | * connected. | ||
| 19 | * @gpio_sck: no. of gpio to which the data clock is connected. | ||
| 20 | * @supply_mv: supply voltage in mv. Overridden by regulator if | ||
| 21 | * available. | ||
| 22 | * @checksum: flag to indicate the checksum should be validated. | ||
| 23 | * @no_otp_reload: flag to indicate no reload from OTP. | ||
| 24 | * @low_resolution: flag to indicate the temp/humidity resolution to use. | ||
| 25 | */ | ||
| 26 | struct sht15_platform_data { | ||
| 27 | int gpio_data; | ||
| 28 | int gpio_sck; | ||
| 29 | int supply_mv; | ||
| 30 | bool checksum; | ||
| 31 | bool no_otp_reload; | ||
| 32 | bool low_resolution; | ||
| 33 | }; | ||
