Message ID | E1kzMGF-00BqDD-PX@www.linuxtv.org |
---|---|
State | Accepted |
Commit | 334de4b45892f7e67074e1b1b2ac36fd3e091118 |
Headers | show |
Series | [git:media_tree/master] media: ipu3-cio2: Fix mbus_code processing in cio2_subdev_set_fmt() | expand |
diff --git a/drivers/media/pci/intel/ipu3/ipu3-cio2.c b/drivers/media/pci/intel/ipu3/ipu3-cio2.c index 36e354ecf71e..e8ea69d30bfd 100644 --- a/drivers/media/pci/intel/ipu3/ipu3-cio2.c +++ b/drivers/media/pci/intel/ipu3/ipu3-cio2.c @@ -1269,7 +1269,7 @@ static int cio2_subdev_set_fmt(struct v4l2_subdev *sd, fmt->format.code = formats[0].mbus_code; for (i = 0; i < ARRAY_SIZE(formats); i++) { - if (formats[i].mbus_code == fmt->format.code) { + if (formats[i].mbus_code == mbus_code) { fmt->format.code = mbus_code; break; }