temp revert rk change
[firefly-linux-kernel-4.4.55.git] / include / linux / max9635.h
1 /*
2  * Copyright (C) 2010 Motorola, Inc.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
16  * 02111-1307, USA
17  */
18
19 #ifndef _LINUX_MAX9635_H__
20 #define _LINUX_MAX9635_H__
21
22 #define MAX9635_NAME "max9635"
23
24 #ifdef __KERNEL__
25
26 struct max9635_platform_data {
27         u8 configure;
28         u8 threshold_timer;
29         u8 def_low_threshold;
30         u8 def_high_threshold;
31         u8 lens_coeff;
32 };
33
34 #endif  /* __KERNEL__ */
35
36 #define MAX9635_IO                      0xA3
37
38 #define MAX9635_IOCTL_GET_ENABLE        _IOR(MAX9635_IO, 0x00, char)
39 #define MAX9635_IOCTL_SET_ENABLE        _IOW(MAX9635_IO, 0x01, char)
40
41 #endif  /* _LINUX_MAX9635_H__ */