提交 aee786ac 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

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

bt->width should be (bt)->width, and same for the other fields.
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Cc: stable@vger.kernel.org # For 3.12 or upper
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 d984d325
...@@ -1080,14 +1080,14 @@ struct v4l2_bt_timings { ...@@ -1080,14 +1080,14 @@ struct v4l2_bt_timings {
/* A few useful defines to calculate the total blanking and frame sizes */ /* A few useful defines to calculate the total blanking and frame sizes */
#define V4L2_DV_BT_BLANKING_WIDTH(bt) \ #define V4L2_DV_BT_BLANKING_WIDTH(bt) \
(bt->hfrontporch + bt->hsync + bt->hbackporch) ((bt)->hfrontporch + (bt)->hsync + (bt)->hbackporch)
#define V4L2_DV_BT_FRAME_WIDTH(bt) \ #define V4L2_DV_BT_FRAME_WIDTH(bt) \
(bt->width + V4L2_DV_BT_BLANKING_WIDTH(bt)) ((bt)->width + V4L2_DV_BT_BLANKING_WIDTH(bt))
#define V4L2_DV_BT_BLANKING_HEIGHT(bt) \ #define V4L2_DV_BT_BLANKING_HEIGHT(bt) \
(bt->vfrontporch + bt->vsync + bt->vbackporch + \ ((bt)->vfrontporch + (bt)->vsync + (bt)->vbackporch + \
bt->il_vfrontporch + bt->il_vsync + bt->il_vbackporch) (bt)->il_vfrontporch + (bt)->il_vsync + (bt)->il_vbackporch)
#define V4L2_DV_BT_FRAME_HEIGHT(bt) \ #define V4L2_DV_BT_FRAME_HEIGHT(bt) \
(bt->height + V4L2_DV_BT_BLANKING_HEIGHT(bt)) ((bt)->height + V4L2_DV_BT_BLANKING_HEIGHT(bt))
/** struct v4l2_dv_timings - DV timings /** struct v4l2_dv_timings - DV timings
* @type: the type of the timings * @type: the type of the timings
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册