Skip to contentSkip to conversation

ov9640: fix missing break

PATCH RESEND In review Alan Cox 2 participants 2 messages Jul 24, 2012 – Jul 29, 2012 Media (V4L/DVB)

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH RESEND 1/1 ov9640: fix missing break

From: Alan Cox <[email protected]>

Without this rev2 ends up behaving as rev3

Reported-by [email protected]

Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=44081

---

 drivers/media/video/ov9640.c |    1 +
 1 file changed, 1 insertion(+)
drivers/media/video/ov9640.c +1 -0
index 23412de..9ed4ba4 100644
@@ -605,6 +605,7 @@ static int ov9640_video_probe(struct i2c_client *client)
 		devname		= "ov9640";
 		priv->model	= V4L2_IDENT_OV9640;
 		priv->revision	= 2;
+		break;
 	case OV9640_V3:
 		devname		= "ov9640";
 		priv->model	= V4L2_IDENT_OV9640;
#1 lore raw

Hi Alan

Quoted 7 lines · Alan Cox

From: Alan Cox <[email protected]>

Without this rev2 ends up behaving as rev3

Reported-by [email protected]

Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=44081

Thanks, I'll push this for 3.6, and will ask Mauro to push this to stable too.

Thanks
Guennadi

Quoted 19 lines

---

 drivers/media/video/ov9640.c |    1 +
 1 file changed, 1 insertion(+)
drivers/media/video/ov9640.c +1 -1
index 23412de..9ed4ba4 100644
@@ -605,6 +605,7 @@ static int ov9640_video_probe(struct i2c_client *client)
 		devname		= "ov9640";
 		priv->model	= V4L2_IDENT_OV9640;
 		priv->revision	= 2;
+		break;
 	case OV9640_V3:
 		devname		= "ov9640";
 		priv->model	= V4L2_IDENT_OV9640;
 
--
Quoted 4 lines

To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/