summaryrefslogtreecommitdiff
path: root/drivers/media/video/tegra/sh532u.c
diff options
context:
space:
mode:
authorQinggang Zhou <qzhou@nvidia.com>2011-08-17 17:38:19 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:48:24 -0800
commit4cfb418cdf0769de28c70852d7f1008cdc0b82d3 (patch)
treef4c930dcfe8fed17df07a6007b65b28f102d0a0d /drivers/media/video/tegra/sh532u.c
parentb06b2a15dd52a405e0ec7375be6909f7fc971035 (diff)
media: video: tegra: sh532u: remove focuser init_pos
AF sets the initial position for focuser. It's not required to set initial positions in the kernel. Removing them speeds up camera launch. bug 835634 Original-Change-Id: I26b13c56ee4cd7e193493ed3c3bbd33c4c9bef4c Reviewed-on: http://git-master/r/47657 Tested-by: Qinggang Zhou <qzhou@nvidia.com> Reviewed-by: Qi Wang <qiw@nvidia.com> Reviewed-by: Gary Zhang <garyz@nvidia.com> Reviewed-by: Naren Bhat <nbhat@nvidia.com> Reviewed-by: Patrick Shehane <pshehane@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Rebase-Id: R6933121318bd88756bf4a08edd25b02d1195a185
Diffstat (limited to 'drivers/media/video/tegra/sh532u.c')
-rw-r--r--drivers/media/video/tegra/sh532u.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/media/video/tegra/sh532u.c b/drivers/media/video/tegra/sh532u.c
index ee3e67f66914..0038359c79f4 100644
--- a/drivers/media/video/tegra/sh532u.c
+++ b/drivers/media/video/tegra/sh532u.c
@@ -300,19 +300,6 @@ get_rom_info_error:
info->config.pos_low = POS_LOW;
}
-static void init_hvca_pos(struct sh532u_sensor *info)
-{
- struct i2c_client *client = info->i2c_client;
- short sBottomLimit, sTopLimit;
-
- get_rom_info(info);
- sBottomLimit = (((int)info->config.limit_low * 5) >> 3) & 0xFFC0;
- lens_move_pulse(client, sBottomLimit);
- sTopLimit = (((int)info->config.limit_high * 5) >> 3) & 0xFFC0;
- lens_move_pulse(client, sTopLimit);
- lens_move_pulse(client, info->config.pos_high);
-}
-
static unsigned int a2buf[] = {
0x0018019c,
0x0018019d,
@@ -476,9 +463,6 @@ static void init_driver(struct sh532u_sensor *info)
}
}
}
- msleep(300);
-
- init_hvca_pos(info);
}