aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorLuwei Zhou <b45643@freescale.com>2013-08-26 04:10:17 -0400
committerNitin Garg <nitin.garg@freescale.com>2014-04-16 09:01:27 -0400
commit45a22464aaee2569f9c26d90e46c9d99ea7ed774 (patch)
tree1c8e27f56bc9b71b0c10282441034b4a9c404415 /include/uapi
parent1e453aba7addf533136824053ef8c2615445c6c9 (diff)
ENGR00276684-1 hwmon: isl29023 Add support for isl29023
Cherry-pick isl29023.h from 3.0.35. Signed-off-by: Luwei Zhou <b45643@freescale.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/isl29023.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/include/uapi/linux/isl29023.h b/include/uapi/linux/isl29023.h
new file mode 100644
index 000000000000..23ae0c56c202
--- /dev/null
+++ b/include/uapi/linux/isl29023.h
@@ -0,0 +1,47 @@
1/*
2 * Copyright (C) 2011-2013 Freescale Semiconductor, Inc. All Rights Reserved.
3 */
4
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 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
21#ifndef __UAPI_LINUX_ISL29023_H__
22#define __UAPI_LINUX_ISL29023_H__
23
24#include <linux/types.h>
25
26#define ISL29023_PD_MODE 0x0
27#define ISL29023_ALS_ONCE_MODE 0x1
28#define ISL29023_IR_ONCE_MODE 0x2
29#define ISL29023_ALS_CONT_MODE 0x5
30#define ISL29023_IR_CONT_MODE 0x6
31
32#define ISL29023_INT_PERSISTS_1 0x0
33#define ISL29023_INT_PERSISTS_4 0x1
34#define ISL29023_INT_PERSISTS_8 0x2
35#define ISL29023_INT_PERSISTS_16 0x3
36
37#define ISL29023_RES_16 0x0
38#define ISL29023_RES_12 0x1
39#define ISL29023_RES_8 0x2
40#define ISL29023_RES_4 0x3
41
42#define ISL29023_RANGE_1K 0x0
43#define ISL29023_RANGE_4K 0x1
44#define ISL29023_RANGE_16K 0x2
45#define ISL29023_RANGE_64K 0x3
46
47#endif