diff mbox series

[v9.1,1/3] fixes! [max9286]: Use the same default mbus_fmt everywhere

Message ID 20200514140016.1445489-2-kieran.bingham+renesas@ideasonboard.com (mailing list archive)
State New
Delegated to: Kieran Bingham
Headers show
Series MAX9286 fixups | expand

Commit Message

Kieran Bingham May 14, 2020, 2 p.m. UTC
The default code used in max9286_set_fmt() differs from other defaults.
Correct it.

Reported-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
---
 drivers/media/i2c/max9286.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/media/i2c/max9286.c b/drivers/media/i2c/max9286.c
index 481d65f2b51d..c8ca1245df4b 100644
--- a/drivers/media/i2c/max9286.c
+++ b/drivers/media/i2c/max9286.c
@@ -722,7 +722,7 @@  static int max9286_set_fmt(struct v4l2_subdev *sd,
 	case MEDIA_BUS_FMT_YVYU8_2X8:
 		break;
 	default:
-		format->format.code = MEDIA_BUS_FMT_YUYV8_2X8;
+		format->format.code = MEDIA_BUS_FMT_UYVY8_2X8;
 		break;
 	}