]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
media: videodev2.h: add parenthesis around macro arguments
authorHans Verkuil <hverkuil@xs4all.nl>
Thu, 27 Feb 2014 09:04:57 +0000 (06:04 -0300)
committerJiri Slaby <jslaby@suse.cz>
Thu, 15 May 2014 07:55:25 +0000 (09:55 +0200)
commit aee786acfc0a12bcd37a1c60f3198fb25cf7181a upstream.

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

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
include/uapi/linux/videodev2.h

index 437f1b0f8937594c67601c3a4bda4505d03826d3..c5e2c7df1b0f9a3be828f1664a846bc64787d5eb 100644 (file)
@@ -1059,14 +1059,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