aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/ths8200.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/i2c/ths8200.c')
-rw-r--r--drivers/media/i2c/ths8200.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/i2c/ths8200.c b/drivers/media/i2c/ths8200.c
index aef7c0e7cd67..28932e9c1f08 100644
--- a/drivers/media/i2c/ths8200.c
+++ b/drivers/media/i2c/ths8200.c
@@ -65,22 +65,22 @@ static inline struct ths8200_state *to_state(struct v4l2_subdev *sd)
65 65
66static inline unsigned hblanking(const struct v4l2_bt_timings *t) 66static inline unsigned hblanking(const struct v4l2_bt_timings *t)
67{ 67{
68 return t->hfrontporch + t->hsync + t->hbackporch; 68 return V4L2_DV_BT_BLANKING_WIDTH(t);
69} 69}
70 70
71static inline unsigned htotal(const struct v4l2_bt_timings *t) 71static inline unsigned htotal(const struct v4l2_bt_timings *t)
72{ 72{
73 return t->width + t->hfrontporch + t->hsync + t->hbackporch; 73 return V4L2_DV_BT_FRAME_WIDTH(t);
74} 74}
75 75
76static inline unsigned vblanking(const struct v4l2_bt_timings *t) 76static inline unsigned vblanking(const struct v4l2_bt_timings *t)
77{ 77{
78 return t->vfrontporch + t->vsync + t->vbackporch; 78 return V4L2_DV_BT_BLANKING_HEIGHT(t);
79} 79}
80 80
81static inline unsigned vtotal(const struct v4l2_bt_timings *t) 81static inline unsigned vtotal(const struct v4l2_bt_timings *t)
82{ 82{
83 return t->height + t->vfrontporch + t->vsync + t->vbackporch; 83 return V4L2_DV_BT_FRAME_HEIGHT(t);
84} 84}
85 85
86static int ths8200_read(struct v4l2_subdev *sd, u8 reg) 86static int ths8200_read(struct v4l2_subdev *sd, u8 reg)