[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200116151229.1002224-1-cengiz@kernel.wtf>
Date: Thu, 16 Jan 2020 18:12:30 +0300
From: Cengiz Can <cengiz@...nel.wtf>
To: prabhakar.csengg@...il.com
Cc: cengiz@...nel.wtf, linux-kernel@...r.kernel.org,
linux-media@...r.kernel.org, mchehab@...nel.org
Subject: [PATCH v2] media: davinci: fix incorrect pix_fmt assignment
There's a mistakenly written self assignment in
`static int vpfe_enum_fmt_vid_cap(..)`.
Fixed it according to Prabhakar Lad's feedback.
Signed-off-by: Cengiz Can <cengiz@...nel.wtf>
---
drivers/media/platform/davinci/vpfe_capture.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/davinci/vpfe_capture.c b/drivers/media/platform/davinci/vpfe_capture.c
index 916ed743d716..357f7ade5218 100644
--- a/drivers/media/platform/davinci/vpfe_capture.c
+++ b/drivers/media/platform/davinci/vpfe_capture.c
@@ -879,7 +879,7 @@ static int vpfe_enum_fmt_vid_cap(struct file *file, void *priv,
/* Fill in the information about format */
pix_fmt = vpfe_lookup_pix_format(pix);
if (pix_fmt) {
- fmt->pixelformat = fmt->pixelformat;
+ fmt->pixelformat = pix_fmt->pixelformat;
return 0;
}
return -EINVAL;
--
2.25.0
Powered by blists - more mailing lists