lkml.org 
[lkml]   [2014]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.14 111/158] media: videodev2.h: add parenthesis around macro arguments
    Date
    3.14-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Hans Verkuil <hverkuil@xs4all.nl>

    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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    include/uapi/linux/videodev2.h | 10 +++++-----
    1 file changed, 5 insertions(+), 5 deletions(-)

    --- a/include/uapi/linux/videodev2.h
    +++ b/include/uapi/linux/videodev2.h
    @@ -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



    \
     
     \ /
      Last update: 2014-05-04 19:21    [W:2.992 / U:0.832 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site