bt->width should be (bt)->width, and same for the other fields.
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -1080,14 +1080,14 @@ struct v4l2_bt_timings { · 1079 unmodified lines | ||
| 1080 | 1080 | |
| 1081 | 1081 | /* A few useful defines to calculate the total blanking and frame sizes */ |
| 1082 | 1082 | #define V4L2_DV_BT_BLANKING_WIDTH(bt) \ |
| 1083 | − (bt->hfrontporch + bt->hsync + bt->hbackporch) | |
| 1083 | + ((bt)->hfrontporch + (bt)->hsync + (bt)->hbackporch) | |
| 1084 | 1084 | #define V4L2_DV_BT_FRAME_WIDTH(bt) \ |
| 1085 | − (bt->width + V4L2_DV_BT_BLANKING_WIDTH(bt)) | |
| 1085 | + ((bt)->width + V4L2_DV_BT_BLANKING_WIDTH(bt)) | |
| 1086 | 1086 | #define V4L2_DV_BT_BLANKING_HEIGHT(bt) \ |
| 1087 | − (bt->vfrontporch + bt->vsync + bt->vbackporch + \ | |
| 1088 | − bt->il_vfrontporch + bt->il_vsync + bt->il_vbackporch) | |
| 1087 | + ((bt)->vfrontporch + (bt)->vsync + (bt)->vbackporch + \ | |
| 1088 | + (bt)->il_vfrontporch + (bt)->il_vsync + (bt)->il_vbackporch) | |
| 1089 | 1089 | #define V4L2_DV_BT_FRAME_HEIGHT(bt) \ |
| 1090 | − (bt->height + V4L2_DV_BT_BLANKING_HEIGHT(bt)) | |
| 1090 | + ((bt)->height + V4L2_DV_BT_BLANKING_HEIGHT(bt)) | |
| 1091 | 1091 | |
| 1092 | 1092 | /** struct v4l2_dv_timings - DV timings |
| 1093 | 1093 | * @type: the type of the timings |