summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorHans Verkuil2019-02-04 11:11:32 +0100
committerMauro Carvalho Chehab2019-02-18 20:43:28 +0100
commitcfc7740835d09b98a304a4793c93b6074c04379e (patch)
treede0cd3d502ac55d069c41031e87373bfe015ecaa /include/media
parentmedia: imx-pxp: Start using the format VUYA32 instead of YUV32 (v2) (diff)
downloadkernel-qcow2-linux-cfc7740835d09b98a304a4793c93b6074c04379e.tar.gz
kernel-qcow2-linux-cfc7740835d09b98a304a4793c93b6074c04379e.tar.xz
kernel-qcow2-linux-cfc7740835d09b98a304a4793c93b6074c04379e.zip
media: vb2: replace bool by bitfield in vb2_buffer
The bool type is not recommended for use in structs, so replace these by bitfields. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/videobuf2-core.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h
index 06142c1469cc..6d5490bb91d3 100644
--- a/include/media/videobuf2-core.h
+++ b/include/media/videobuf2-core.h
@@ -269,8 +269,8 @@ struct vb2_buffer {
* vb2_plane: per-plane information; do not change
*/
enum vb2_buffer_state state;
- bool synced;
- bool prepared;
+ unsigned int synced:1;
+ unsigned int prepared:1;
struct vb2_plane planes[VB2_MAX_PLANES];
struct list_head queued_entry;