lightsensor: adding LIGHTSENSOR_IOCTL_SET_DELAY
Sachin Nikam [Mon, 4 Jun 2012 12:20:15 +0000 (17:20 +0530)]
Introducing LIGHTSENSOR_IOCTL_SET_DELAY to set the polling interval

Bug 993924

Change-Id: I3a4513799d3d96b9c3b701c1194b31562bf8f1e2
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/106185
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

include/linux/lightsensor.h

index 7a87853..fc683fd 100644 (file)
@@ -24,5 +24,6 @@
 
 #define LIGHTSENSOR_IOCTL_GET_ENABLED  _IOR(LIGHTSENSOR_IOCTL_MAGIC, 1, int *)
 #define LIGHTSENSOR_IOCTL_ENABLE       _IOW(LIGHTSENSOR_IOCTL_MAGIC, 2, int *)
+#define LIGHTSENSOR_IOCTL_SET_DELAY    _IOW(LIGHTSENSOR_IOCTL_MAGIC, 3, int *)
 
 #endif