media: staging: media: tegra-vde: Remove BIT() macro from UAPI header
authorDmitry Osipenko <digetx@gmail.com>
Sun, 2 Jun 2019 21:37:09 +0000 (17:37 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 21 Jun 2019 21:22:50 +0000 (17:22 -0400)
The BIT macro isn't available in userspace. Checkpatch complains about
shifts being used instead of the macro and people are starting to send
patches without realizing that it's a UAPI header file. Hence let's
replace the BIT macro with a hex values to make everyone happy.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/tegra-vde/uapi.h

index a0dad1e..dd3e4a8 100644 (file)
@@ -6,8 +6,8 @@
 #include <linux/types.h>
 #include <asm/ioctl.h>
 
-#define FLAG_B_FRAME           BIT(0)
-#define FLAG_REFERENCE         BIT(1)
+#define FLAG_B_FRAME           0x1
+#define FLAG_REFERENCE         0x2
 
 struct tegra_vde_h264_frame {
        __s32 y_fd;