diff options
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/ad5823.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/media/ad5823.h b/include/media/ad5823.h index bc5af4b3a46d..4e31fc918afa 100644 --- a/include/media/ad5823.h +++ b/include/media/ad5823.h @@ -17,10 +17,13 @@ #ifndef __AD5823_H__ #define __AD5823_H__ +#include <media/nvc_focus.h> #include <linux/ioctl.h> /* For IOCTL macros */ #define AD5823_IOCTL_GET_CONFIG _IOR('o', 1, struct ad5823_config) #define AD5823_IOCTL_SET_POSITION _IOW('o', 2, u32) +#define AD5823_IOCTL_SET_CAL_DATA _IOW('o', 3, struct ad5823_cal_data) +#define AD5823_IOCTL_SET_CONFIG _IOW('o', 4, struct nv_focuser_config) /* address */ #define AD5823_RESET (0x1) @@ -41,6 +44,11 @@ struct ad5823_config { float max_aperture; }; +struct ad5823_cal_data { + __u32 pos_low; + __u32 pos_high; +}; + struct ad5823_platform_data { int gpio; int (*power_on)(struct ad5823_platform_data *); |