]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.14.3/media-videodev2.h-add-parenthesis-around-macro-arguments.patch
4.14-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.14.3 / media-videodev2.h-add-parenthesis-around-macro-arguments.patch
1 From aee786acfc0a12bcd37a1c60f3198fb25cf7181a Mon Sep 17 00:00:00 2001
2 From: Hans Verkuil <hverkuil@xs4all.nl>
3 Date: Thu, 27 Feb 2014 06:04:57 -0300
4 Subject: media: videodev2.h: add parenthesis around macro arguments
5
6 From: Hans Verkuil <hverkuil@xs4all.nl>
7
8 commit aee786acfc0a12bcd37a1c60f3198fb25cf7181a upstream.
9
10 bt->width should be (bt)->width, and same for the other fields.
11
12 Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
13 Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
14 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15
16 ---
17 include/uapi/linux/videodev2.h | 10 +++++-----
18 1 file changed, 5 insertions(+), 5 deletions(-)
19
20 --- a/include/uapi/linux/videodev2.h
21 +++ b/include/uapi/linux/videodev2.h
22 @@ -1059,14 +1059,14 @@ struct v4l2_bt_timings {
23
24 /* A few useful defines to calculate the total blanking and frame sizes */
25 #define V4L2_DV_BT_BLANKING_WIDTH(bt) \
26 - (bt->hfrontporch + bt->hsync + bt->hbackporch)
27 + ((bt)->hfrontporch + (bt)->hsync + (bt)->hbackporch)
28 #define V4L2_DV_BT_FRAME_WIDTH(bt) \
29 - (bt->width + V4L2_DV_BT_BLANKING_WIDTH(bt))
30 + ((bt)->width + V4L2_DV_BT_BLANKING_WIDTH(bt))
31 #define V4L2_DV_BT_BLANKING_HEIGHT(bt) \
32 - (bt->vfrontporch + bt->vsync + bt->vbackporch + \
33 - bt->il_vfrontporch + bt->il_vsync + bt->il_vbackporch)
34 + ((bt)->vfrontporch + (bt)->vsync + (bt)->vbackporch + \
35 + (bt)->il_vfrontporch + (bt)->il_vsync + (bt)->il_vbackporch)
36 #define V4L2_DV_BT_FRAME_HEIGHT(bt) \
37 - (bt->height + V4L2_DV_BT_BLANKING_HEIGHT(bt))
38 + ((bt)->height + V4L2_DV_BT_BLANKING_HEIGHT(bt))
39
40 /** struct v4l2_dv_timings - DV timings
41 * @type: the type of the timings