summaryrefslogtreecommitdiff
path: root/include/uapi/linux/v4l2-subdev.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2021-01-18 18:37:00 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-01-26 21:14:33 +0300
commita53e3c189cc6460b60e152af3fc24edf8e0ea9d2 (patch)
tree35cde5f425cf69170b28b1e4f19a069783c45188 /include/uapi/linux/v4l2-subdev.h
parent95e9295daa849095d8be05fb6e26b2ba9be1594f (diff)
downloadlinux-a53e3c189cc6460b60e152af3fc24edf8e0ea9d2.tar.xz
media: v4l2-subdev.h: BIT() is not available in userspace
The BIT macro is not available in userspace, so replace BIT(0) by 0x00000001. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Fixes: 6446ec6cbf46 ("media: v4l2-subdev: add VIDIOC_SUBDEV_QUERYCAP ioctl") Cc: <stable@vger.kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'include/uapi/linux/v4l2-subdev.h')
-rw-r--r--include/uapi/linux/v4l2-subdev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/v4l2-subdev.h b/include/uapi/linux/v4l2-subdev.h
index 00850b98078a..a38454d9e0f5 100644
--- a/include/uapi/linux/v4l2-subdev.h
+++ b/include/uapi/linux/v4l2-subdev.h
@@ -176,7 +176,7 @@ struct v4l2_subdev_capability {
};
/* The v4l2 sub-device video device node is registered in read-only mode. */
-#define V4L2_SUBDEV_CAP_RO_SUBDEV BIT(0)
+#define V4L2_SUBDEV_CAP_RO_SUBDEV 0x00000001
/* Backwards compatibility define --- to be removed */
#define v4l2_subdev_edid v4l2_edid