[media] videodev2.h: add parenthesis around macro arguments
authorHans Verkuil <hverkuil@xs4all.nl>
Thu, 27 Feb 2014 09:04:57 +0000 (06:04 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 28 Mar 2014 21:08:22 +0000 (18:08 -0300)
bt->width should be (bt)->width, and same for the other fields.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: stable@vger.kernel.org # For 3.12 or upper
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
include/uapi/linux/videodev2.h

index e35ad6ca1e8aa600d558c2f01bf60b22cbee93a7..ea468ee8fe21a7e3ef348f994e8e8c77942d0c3e 100644 (file)
@@ -1080,14 +1080,14 @@ struct v4l2_bt_timings {
 
 /* A few useful defines to calculate the total blanking and frame sizes */
 #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) \
-       (bt->width + V4L2_DV_BT_BLANKING_WIDTH(bt))
+       ((bt)->width + V4L2_DV_BT_BLANKING_WIDTH(bt))
 #define V4L2_DV_BT_BLANKING_HEIGHT(bt) \
-       (bt->vfrontporch + bt->vsync + bt->vbackporch + \
-        bt->il_vfrontporch + bt->il_vsync + bt->il_vbackporch)
+       ((bt)->vfrontporch + (bt)->vsync + (bt)->vbackporch + \
+        (bt)->il_vfrontporch + (bt)->il_vsync + (bt)->il_vbackporch)
 #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
  * @type:      the type of the timings