diff options
| author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2011-04-12 15:34:38 -0400 |
|---|---|---|
| committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2011-05-19 11:19:35 -0400 |
| commit | cc15c7ebb424e45ba2c5ceecbe52d025219ee970 (patch) | |
| tree | b5f752332d07352bc3d38381c554a3d71beeb588 /include/linux | |
| parent | 181148ae68799f5b17f09b418b276f56e9179e99 (diff) | |
hwmon: (sht15) add support for the status register
* Add support for:
- Heater.
- End of battery notice.
- Ability not to reload from OTP.
- Low resolution (12bit temp, 8bit humidity).
* Add an utility function to read individual bytes from the device.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sht15.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sht15.h b/include/linux/sht15.h index 1e302146bdc8..d836ca617323 100644 --- a/include/linux/sht15.h +++ b/include/linux/sht15.h | |||
| @@ -19,10 +19,14 @@ | |||
| 19 | * @gpio_sck: no. of gpio to which the data clock is 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 | 20 | * @supply_mv: supply voltage in mv. Overridden by regulator if |
| 21 | * available. | 21 | * available. |
| 22 | * @no_otp_reload: flag to indicate no reload from OTP. | ||
| 23 | * @low_resolution: flag to indicate the temp/humidity resolution to use. | ||
| 22 | */ | 24 | */ |
| 23 | struct sht15_platform_data { | 25 | struct sht15_platform_data { |
| 24 | int gpio_data; | 26 | int gpio_data; |
| 25 | int gpio_sck; | 27 | int gpio_sck; |
| 26 | int supply_mv; | 28 | int supply_mv; |
| 29 | bool no_otp_reload; | ||
| 30 | bool low_resolution; | ||
| 27 | }; | 31 | }; |
| 28 | 32 | ||
