aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sht15.h
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2011-04-12 15:34:36 -0400
committerGuenter Roeck <guenter.roeck@ericsson.com>2011-05-19 11:19:33 -0400
commit99a0378de9f887fd4d501f1baa50aaf16d01a8e8 (patch)
tree1c13bd8f5c89eccfd94e2c8e61323dd70f0a5191 /include/linux/sht15.h
parent83bffbce745795572d20f0109395cb61690c6dcf (diff)
hwmon: (sht15) general code clean-up
* Add a documentation file for the device. * Respect a bit more the kernel-doc syntax. * Rename some variables for clarity. * Use bool type for flags. * Use an enum for states (actions being done). 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/sht15.h')
-rw-r--r--include/linux/sht15.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/linux/sht15.h b/include/linux/sht15.h
index 046bce05ecab..1e302146bdc8 100644
--- a/include/linux/sht15.h
+++ b/include/linux/sht15.h
@@ -8,14 +8,18 @@
8 * This program is free software; you can redistribute it and/or modify 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 9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation. 10 * published by the Free Software Foundation.
11 *
12 * For further information, see the Documentation/hwmon/sht15 file.
11 */ 13 */
12 14
13/** 15/**
14 * struct sht15_platform_data - sht15 connectivity info 16 * struct sht15_platform_data - sht15 connectivity info
15 * @gpio_data: no. of gpio to which bidirectional data line is connected 17 * @gpio_data: no. of gpio to which bidirectional data line is
16 * @gpio_sck: no. of gpio to which the data clock is connected. 18 * connected.
17 * @supply_mv: supply voltage in mv. Overridden by regulator if available. 19 * @gpio_sck: no. of gpio to which the data clock is connected.
18 **/ 20 * @supply_mv: supply voltage in mv. Overridden by regulator if
21 * available.
22 */
19struct sht15_platform_data { 23struct sht15_platform_data {
20 int gpio_data; 24 int gpio_data;
21 int gpio_sck; 25 int gpio_sck;