diff options
author | Ezequiel Garcia <[email protected]> | 2020-07-01 15:16:05 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2020-07-19 13:25:22 +0200 |
commit | e765dba11ec26d7ea42974ec4d470b5ce00be3de (patch) | |
tree | 2a1329c8dff5f4a0a5b1791d9fbd1ca0bcfea9ad /drivers/media/test-drivers/vimc/vimc-sensor.c | |
parent | 21f0315b7b3ee6ca909d81a963744671fb27bf71 (diff) |
hantro: Move hantro_enc_buf_finish to JPEG codec_ops.done
hantro_enc_buf_finish is used only for JPEG, and so should
be moved to JPEG codec_ops.done.
This cleanup is also taking care of addressing
a subtle issue: checking the non-NULL bounce buffer
using ctx->jpeg_enc, which is a member of a union is
confusing and error-prone.
Note that the issue is currently innocuous because an
encoder context only supports JPEG.
The codec_ops.done has an argument that codec-specific code
shouldn't need, so drop that as well.
Signed-off-by: Ezequiel Garcia <[email protected]>
Reviewed-by: Philipp Zabel <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/media/test-drivers/vimc/vimc-sensor.c')
0 files changed, 0 insertions, 0 deletions