summaryrefslogtreecommitdiff
path: root/include/media
diff options
context:
space:
mode:
Diffstat (limited to 'include/media')
-rw-r--r--include/media/sh532u.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/media/sh532u.h b/include/media/sh532u.h
index 2581d9ae7cbd..9fba8e084e29 100644
--- a/include/media/sh532u.h
+++ b/include/media/sh532u.h
@@ -21,8 +21,17 @@
#include <linux/ioctl.h> /* For IOCTL macros */
-#define SH532U_IOCTL_GET_CONFIG _IOR('o', 1, struct sh532u_config)
+#define SH532U_IOCTL_GET_CONFIG _IOR('o', 1, struct sh532u_config)
#define SH532U_IOCTL_SET_POSITION _IOW('o', 2, u32)
+#define SH532U_IOCTL_GET_MOVE_STATUS _IOW('o', 3, unsigned char)
+
+enum sh532u_move_status {
+ SH532U_STATE_UNKNOWN = 1,
+ SH532U_WAIT_FOR_MOVE_END,
+ SH532U_WAIT_FOR_SETTLE,
+ SH532U_LENS_SETTLED,
+ SH532U_Forced32 = 0x7FFFFFFF
+};
struct sh532u_config {
__u32 settle_time;