Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366651
b: refs/heads/master
c: cbaa5c5
h: refs/heads/master
i:
  366649: efa6a77
  366647: 19748a7
v: v3
  • Loading branch information
Benoît Thébaudeau authored and Mauro Carvalho Chehab committed Mar 21, 2013
1 parent a781ae8 commit dc78068
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: d65fcbb0007bd8f0bcb93d1acd7970eea2aa06fc
refs/heads/master: cbaa5c54cb73897ed6c2544a60ed52aa3215b0f6
4 changes: 2 additions & 2 deletions trunk/drivers/media/i2c/soc_camera/mt9m111.c
Original file line number Diff line number Diff line change
Expand Up @@ -701,11 +701,11 @@ static int mt9m111_set_global_gain(struct mt9m111 *mt9m111, int gain)
return reg_write(GLOBAL_GAIN, val);
}

static int mt9m111_set_autoexposure(struct mt9m111 *mt9m111, int on)
static int mt9m111_set_autoexposure(struct mt9m111 *mt9m111, int val)
{
struct i2c_client *client = v4l2_get_subdevdata(&mt9m111->subdev);

if (on)
if (val == V4L2_EXPOSURE_AUTO)
return reg_set(OPER_MODE_CTRL, MT9M111_OPMODE_AUTOEXPO_EN);
return reg_clear(OPER_MODE_CTRL, MT9M111_OPMODE_AUTOEXPO_EN);
}
Expand Down

0 comments on commit dc78068

Please sign in to comment.