History

[media] videodev2.h: add parenthesis around macro arguments

bt->width should be (bt)->width, and same for the other fields.

Hans Verkuil committed 12 years ago

Commit aee786a1 parent d984d321 file · +5 −5Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/videodev2.h+5−5
@@ -1080,14 +1080,14 @@ struct v4l2_bt_timings { · 1079 unmodified lines
1080 1080
1081/* A few useful defines to calculate the total blanking and frame sizes */1081/* A few useful defines to calculate the total blanking and frame sizes */
1082#define V4L2_DV_BT_BLANKING_WIDTH(bt) \1082#define V4L2_DV_BT_BLANKING_WIDTH(bt) \
1083 (bt->hfrontporch + bt->hsync + bt->hbackporch)1083 ((bt)->hfrontporch + (bt)->hsync + (bt)->hbackporch)
1084#define V4L2_DV_BT_FRAME_WIDTH(bt) \1084#define V4L2_DV_BT_FRAME_WIDTH(bt) \
1085 (bt->width + V4L2_DV_BT_BLANKING_WIDTH(bt))1085 ((bt)->width + V4L2_DV_BT_BLANKING_WIDTH(bt))
1086#define V4L2_DV_BT_BLANKING_HEIGHT(bt) \1086#define V4L2_DV_BT_BLANKING_HEIGHT(bt) \
1087 (bt->vfrontporch + bt->vsync + bt->vbackporch + \1087 ((bt)->vfrontporch + (bt)->vsync + (bt)->vbackporch + \
1088 bt->il_vfrontporch + bt->il_vsync + bt->il_vbackporch)1088 (bt)->il_vfrontporch + (bt)->il_vsync + (bt)->il_vbackporch)
1089#define V4L2_DV_BT_FRAME_HEIGHT(bt) \1089#define V4L2_DV_BT_FRAME_HEIGHT(bt) \
1090 (bt->height + V4L2_DV_BT_BLANKING_HEIGHT(bt))1090 ((bt)->height + V4L2_DV_BT_BLANKING_HEIGHT(bt))
1091 1091
1092/** struct v4l2_dv_timings - DV timings1092/** struct v4l2_dv_timings - DV timings
1093 * @type: the type of the timings1093 * @type: the type of the timings