diff options
| author | David Frey <david.frey@sensirion.com> | 2016-06-02 03:59:11 -0400 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2016-06-27 21:58:03 -0400 |
| commit | 7c84f7f80d6fcea36246b793d06c3555ca53ddcd (patch) | |
| tree | 28469d58b195ac6a9c957b14a3c2f1ae65bfd60a /include/linux/platform_data | |
| parent | 76b5808e8cb9d8be214a1bbf613e19b6e3ebb3fb (diff) | |
hwmon: add support for Sensirion SHT3x sensors
This driver implements support for the Sensirion SHT3x-DIS chip,
a humidity and temperature sensor. Temperature is measured
in degrees celsius, relative humidity is expressed as a percentage.
In the sysfs interface, all values are scaled by 1000,
i.e. the value for 31.5 degrees celsius is 31500.
Signed-off-by: Pascal Sachs <pascal.sachs@sensirion.com>
[groeck: Fixed 'Variable length array is used' gcc warning]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/sht3x.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/linux/platform_data/sht3x.h b/include/linux/platform_data/sht3x.h new file mode 100644 index 000000000000..2e5eea358194 --- /dev/null +++ b/include/linux/platform_data/sht3x.h | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2016 Sensirion AG, Switzerland | ||
| 3 | * Author: David Frey <david.frey@sensirion.com> | ||
| 4 | * Author: Pascal Sachs <pascal.sachs@sensirion.com> | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | * | ||
| 11 | * This program is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | */ | ||
| 17 | |||
| 18 | #ifndef __SHT3X_H_ | ||
| 19 | #define __SHT3X_H_ | ||
| 20 | |||
| 21 | struct sht3x_platform_data { | ||
| 22 | bool blocking_io; | ||
| 23 | bool high_precision; | ||
| 24 | }; | ||
| 25 | #endif /* __SHT3X_H_ */ | ||
