diff mbox

[PULL] ov7670 changes

Message ID 20100326101407.431399c4@bike.lwn.net (mailing list archive)
State Accepted
Delegated to: Mauro Carvalho Chehab
Headers show

Commit Message

Jonathan Corbet March 26, 2010, 4:14 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/media/video/ov7670.c b/drivers/media/video/ov7670.c
index a3fee6a..798b4c9 100644
--- a/drivers/media/video/ov7670.c
+++ b/drivers/media/video/ov7670.c
@@ -873,8 +873,7 @@  static int ov7670_s_parm(struct v4l2_subdev *sd, struct v4l2_streamparm *parms)
 	struct v4l2_captureparm *cp = &parms->parm.capture;
 	struct v4l2_fract *tpf = &cp->timeperframe;
 	struct ov7670_info *info = to_state(sd);
-	unsigned char clkrc;
-	int ret, div;
+	int div;
 
 	if (parms->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
 		return -EINVAL;
@@ -1280,9 +1279,9 @@  static int ov7670_g_autoexp(struct v4l2_subdev *sd, __s32 *value)
 
 	ret = ov7670_read(sd, REG_COM8, &com8);
 	if (com8 & COM8_AEC)
-		*value = V4L2_EXPOSURE_AUTO;
+		*atype = V4L2_EXPOSURE_AUTO;
 	else
-		*value = V4L2_EXPOSURE_MANUAL;
+		*atype = V4L2_EXPOSURE_MANUAL;
 	return ret;
 }