| Johnny Qiu | 85d729b | 2011-12-09 16:42:03 -0800 | [diff] [blame] | 1 | /* include/linux/lightsensor.h |
| 2 | * |
| 3 | * Copyright (C) 2011 Capella Microsystems Inc. |
| 4 | * Author: Frank Hsieh <pengyueh@gmail.com> |
| 5 | * |
| 6 | * This software is licensed under the terms of the GNU General Public |
| 7 | * License version 2, as published by the Free Software Foundation, and |
| 8 | * may be copied, distributed, and modified under those terms. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | */ |
| 16 | |
| 17 | #ifndef __LINUX_LIGHTSENSOR_H |
| 18 | #define __LINUX_LIGHTSENSOR_H |
| 19 | |
| 20 | #include <linux/types.h> |
| 21 | #include <linux/ioctl.h> |
| 22 | |
| Johnny Qiu | d6fa1e0 | 2012-02-13 15:33:11 +0800 | [diff] [blame] | 23 | #define LIGHTSENSOR_IOCTL_MAGIC 'l' |
| Johnny Qiu | 85d729b | 2011-12-09 16:42:03 -0800 | [diff] [blame] | 24 | |
| Johnny Qiu | d6fa1e0 | 2012-02-13 15:33:11 +0800 | [diff] [blame] | 25 | #define LIGHTSENSOR_IOCTL_GET_ENABLED _IOR(LIGHTSENSOR_IOCTL_MAGIC, 1, int *) |
| 26 | #define LIGHTSENSOR_IOCTL_ENABLE _IOW(LIGHTSENSOR_IOCTL_MAGIC, 2, int *) |
| Sachin Nikam | 03dcb09 | 2012-06-04 17:50:15 +0530 | [diff] [blame] | 27 | #define LIGHTSENSOR_IOCTL_SET_DELAY _IOW(LIGHTSENSOR_IOCTL_MAGIC, 3, int *) |
| Johnny Qiu | 85d729b | 2011-12-09 16:42:03 -0800 | [diff] [blame] | 28 | |
| 29 | #endif |