Skip to content

Commit

Permalink
media: v4l2-subdev.h: BIT() is not available in userspace
Browse files Browse the repository at this point in the history
commit a53e3c1 upstream.

The BIT macro is not available in userspace, so replace BIT(0) by
0x00000001.

Signed-off-by: Hans Verkuil <[email protected]>
Fixes: 6446ec6 ("media: v4l2-subdev: add VIDIOC_SUBDEV_QUERYCAP ioctl")
Cc: <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Hans Verkuil authored and gregkh committed Jan 30, 2021
1 parent 94fb5ff commit 77727df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/uapi/linux/v4l2-subdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77727df

Please sign in to comment.