[media] v4l2-ctrls: use ptrs for all but the s32 type
Rather than having two unions for all types just keep 'val' and 'cur.val' and use the p_cur and p_new unions to access all others. The only reason for keeping 'val' and 'cur.val' is that it is used all over, so converting this as well would be a huge job. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
9ea1b7a4b6
commit
2a9ec37311
@@ -135,8 +135,8 @@ static int ivtv_g_volatile_ctrl(struct v4l2_ctrl *ctrl)
|
||||
/* V4L2_CID_MPEG_VIDEO_DEC_PTS and V4L2_CID_MPEG_VIDEO_DEC_FRAME
|
||||
control cluster */
|
||||
case V4L2_CID_MPEG_VIDEO_DEC_PTS:
|
||||
return ivtv_g_pts_frame(itv, &itv->ctrl_pts->val64,
|
||||
&itv->ctrl_frame->val64);
|
||||
return ivtv_g_pts_frame(itv, itv->ctrl_pts->p_new.p_s64,
|
||||
itv->ctrl_frame->p_new.p_s64);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user