diff options
author | Jake Park <jakep@nvidia.com> | 2013-04-23 16:28:45 +0900 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2013-06-11 11:21:51 -0700 |
commit | e0e3f2f92b1d723deba7590f19eeb2357e37caf6 (patch) | |
tree | 004d8ca7059c671f0de3d4cd240185a3c501dcd0 /include | |
parent | 111933965803a141746b244cc3d2489c3b27ae38 (diff) |
media: tegra: ad5823: add setting from cal data
Added the capability to set pos_high/pos_low from
the per unit calibration data for VCM.
Bug 1271714
Bug 1270541
Bug 1264961
Change-Id: If459308459523918be153df809f8890b379a797c
Signed-off-by: Jake Park <jakep@nvidia.com>
Reviewed-on: http://git-master/r/232852
(cherry picked from commit 2c86c26fd86d913980503bd860de4fcfb9b84c73)
Reviewed-on: http://git-master/r/222636
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/media/ad5823.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/media/ad5823.h b/include/media/ad5823.h index bc5af4b3a46d..2a8eaf636600 100644 --- a/include/media/ad5823.h +++ b/include/media/ad5823.h @@ -21,6 +21,7 @@ #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('0', 2, struct ad5823_cal_data) /* address */ #define AD5823_RESET (0x1) @@ -41,6 +42,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 *); |