media: imx-jpeg: don't change byteused of queued buffer
authorMing Qian <ming.qian@nxp.com>
Mon, 11 Apr 2022 08:19:53 +0000 (09:19 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 24 Apr 2022 07:50:55 +0000 (08:50 +0100)
commit2394eaeebd90270aae88284ad0d3b5c94cb2846c
treef63acc7b36b549672e2000af2f411530e2c9df8a
parent2203436a4d24302871617373a7eb21bc17e38762
media: imx-jpeg: don't change byteused of queued buffer

Don't change the output buffer's bytesused set by user.
Drop allow_zero_bytesused, since it's deprecated.
This should also guarantee it's the application's responsibility
to set bytesused for the output buffer.

Signed-off-by: Ming Qian <ming.qian@nxp.com>
Reviewed-by: Mirela Rabulea <mirela.rabulea@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c