diff options
Diffstat (limited to 'drivers/media/i2c/adv7604.c')
-rw-r--r-- | drivers/media/i2c/adv7604.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index 181a6c359335..3ec7ec0911ca 100644 --- a/drivers/media/i2c/adv7604.c +++ b/drivers/media/i2c/adv7604.c | |||
@@ -261,22 +261,22 @@ static inline struct v4l2_subdev *to_sd(struct v4l2_ctrl *ctrl) | |||
261 | 261 | ||
262 | static inline unsigned hblanking(const struct v4l2_bt_timings *t) | 262 | static inline unsigned hblanking(const struct v4l2_bt_timings *t) |
263 | { | 263 | { |
264 | return t->hfrontporch + t->hsync + t->hbackporch; | 264 | return V4L2_DV_BT_BLANKING_WIDTH(t); |
265 | } | 265 | } |
266 | 266 | ||
267 | static inline unsigned htotal(const struct v4l2_bt_timings *t) | 267 | static inline unsigned htotal(const struct v4l2_bt_timings *t) |
268 | { | 268 | { |
269 | return t->width + t->hfrontporch + t->hsync + t->hbackporch; | 269 | return V4L2_DV_BT_FRAME_WIDTH(t); |
270 | } | 270 | } |
271 | 271 | ||
272 | static inline unsigned vblanking(const struct v4l2_bt_timings *t) | 272 | static inline unsigned vblanking(const struct v4l2_bt_timings *t) |
273 | { | 273 | { |
274 | return t->vfrontporch + t->vsync + t->vbackporch; | 274 | return V4L2_DV_BT_BLANKING_HEIGHT(t); |
275 | } | 275 | } |
276 | 276 | ||
277 | static inline unsigned vtotal(const struct v4l2_bt_timings *t) | 277 | static inline unsigned vtotal(const struct v4l2_bt_timings *t) |
278 | { | 278 | { |
279 | return t->height + t->vfrontporch + t->vsync + t->vbackporch; | 279 | return V4L2_DV_BT_FRAME_HEIGHT(t); |
280 | } | 280 | } |
281 | 281 | ||
282 | /* ----------------------------------------------------------------------- */ | 282 | /* ----------------------------------------------------------------------- */ |