mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
hwmon: add support for Sensirion SHTC1 sensor
Add support for Sensirion SHTC1 and compatible temperature and humidity sensors. Signed-off-by: Tomas Pop <tomas.pop@sensirion.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
31e3879127
commit
1a539d372e
5 changed files with 328 additions and 0 deletions
23
include/linux/platform_data/shtc1.h
Normal file
23
include/linux/platform_data/shtc1.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Copyright (C) 2014 Sensirion AG, Switzerland
|
||||
* Author: Johannes Winkelmann <johannes.winkelmann@sensirion.com>
|
||||
*
|
||||
* This software is licensed under the terms of the GNU General Public
|
||||
* License version 2, as published by the Free Software Foundation, and
|
||||
* may be copied, distributed, and modified under those terms.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __SHTC1_H_
|
||||
#define __SHTC1_H_
|
||||
|
||||
struct shtc1_platform_data {
|
||||
bool blocking_io;
|
||||
bool high_precision;
|
||||
};
|
||||
#endif /* __SHTC1_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue