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
10801080
10811081 /* A few useful defines to calculate the total blanking and frame sizes */
10821082 #define V4L2_DV_BT_BLANKING_WIDTH(bt) \
1083− (bt->hfrontporch + bt->hsync + bt->hbackporch)
1083+ ((bt)->hfrontporch + (bt)->hsync + (bt)->hbackporch)
10841084 #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))
10861086 #define V4L2_DV_BT_BLANKING_HEIGHT(bt) \
1087− (bt->vfrontporch + bt->vsync + bt->vbackporch + \
1088− bt->il_vfrontporch + bt->il_vsync + bt->il_vbackporch)
1087+ ((bt)->vfrontporch + (bt)->vsync + (bt)->vbackporch + \
1088+ (bt)->il_vfrontporch + (bt)->il_vsync + (bt)->il_vbackporch)
10891089 #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))
10911091
10921092 /** struct v4l2_dv_timings - DV timings
10931093 * @type: the type of the timings