media: video: tegra: sh532u: Focuser range tuning support
authorNaren Bhat <nbhat@nvidia.com>
Thu, 21 Jun 2012 23:48:51 +0000 (16:48 -0700)
committerRohan Somvanshi <rsomvanshi@nvidia.com>
Wed, 11 Jul 2012 14:25:24 +0000 (07:25 -0700)
commitbcd0a2fc0a3b246556ad184af72e49779867e876
treec3ac6f80f36cecc508693866abbb9e92e9f51a92
parentec165877819d4b2077a3b96a070bab825a62d7cf
media: video: tegra: sh532u: Focuser range tuning support

Support for get/set capabilities added. Focuser code has a way to
calibrate itself that results in determination of optimal working
range. This along with actual range from device ROM are returned
to the caller. Focuser has the macro at lower end and infinity at
farther end of the range, which are reversed to the user level to
keep the inf/macro positions to be consistent. Focuser range
translation is taken out.

Bug 1004816

Change-Id: I1a086ff10e99940f9ad861397bf7e71e9996c68a
Signed-off-by: Naren Bhat <nbhat@nvidia.com>
Reviewed-on: http://git-master/r/110443
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Patrick Shehane <pshehane@nvidia.com>
Tested-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/media/video/tegra/sh532u.c
include/media/nvc_focus.h