Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186558
b: refs/heads/master
c: 8c172dd
h: refs/heads/master
v: v3
  • Loading branch information
Justin Madru authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent 52e5964 commit 6d87afe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 096417e087a391dc78780cc1843369a521635522
refs/heads/master: 8c172dde41db666f7a5f3bb62205da017e23c0ec
10 changes: 3 additions & 7 deletions trunk/drivers/staging/dream/camera/s5k3e2fx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1093,14 +1093,10 @@ static int32_t s5k3e2fx_move_focus(int direction, int32_t num_steps)

actual_step = step_direction * (int16_t)num_steps;
pos_offset = init_code + s5k3e2fx_ctrl->curr_lens_pos;
gain = actual_step * 0x400 / 5;
gain = ((actual_step << 10) / 5) >> 10;

for (i = 0; i <= 4; i++) {
if (actual_step >= 0)
s_move[i] = ((((i+1)*gain+0x200) - (i*gain+0x200))/0x400);
else
s_move[i] = ((((i+1)*gain-0x200) - (i*gain-0x200))/0x400);
}
for (i = 0; i <= 4; i++)
s_move[i] = gain;

/* Ring Damping Code */
for (i = 0; i <= 4; i++) {
Expand Down

0 comments on commit 6d87afe

Please sign in to comment.