From: Mauro Carvalho Chehab Date: Fri, 6 Oct 2017 16:20:52 +0000 (-0400) Subject: media: vb2-core: use bitops for bits X-Git-Tag: v5.15~9456^2~180 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=37bc2d87419832ead83e480845615d328d199633;p=platform%2Fkernel%2Flinux-starfive.git media: vb2-core: use bitops for bits Use the existing macros to identify vb2_io_modes bits. Acked-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h index 5f4df06..0308d84 100644 --- a/include/media/videobuf2-core.h +++ b/include/media/videobuf2-core.h @@ -16,6 +16,7 @@ #include #include #include +#include #define VB2_MAX_FRAME (32) #define VB2_MAX_PLANES (8) @@ -191,11 +192,11 @@ struct vb2_plane { * @VB2_DMABUF: driver supports DMABUF with streaming API */ enum vb2_io_modes { - VB2_MMAP = (1 << 0), - VB2_USERPTR = (1 << 1), - VB2_READ = (1 << 2), - VB2_WRITE = (1 << 3), - VB2_DMABUF = (1 << 4), + VB2_MMAP = BIT(0), + VB2_USERPTR = BIT(1), + VB2_READ = BIT(2), + VB2_WRITE = BIT(3), + VB2_DMABUF = BIT(4), }; /**