mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-25 00:52:45 -04:00
media: vimc: Centralize subdev internal_ops initialization
Initialize the subdev internal_ops field in the vimc_ent_sd_register() function. This handles the internal ops the same way as the subdev ops, and prepares for moving to the V4L2 subdev active state API. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
committed by
Hans Verkuil
parent
0b3b27bb69
commit
556d821ade
@@ -591,12 +591,11 @@ static struct vimc_ent_device *vimc_debayer_add(struct vimc_device *vimc,
|
||||
ret = vimc_ent_sd_register(&vdebayer->ved, &vdebayer->sd, v4l2_dev,
|
||||
vcfg_name,
|
||||
MEDIA_ENT_F_PROC_VIDEO_PIXEL_ENC_CONV, 2,
|
||||
vdebayer->pads, &vimc_debayer_ops);
|
||||
vdebayer->pads, &vimc_debayer_internal_ops,
|
||||
&vimc_debayer_ops);
|
||||
if (ret)
|
||||
goto err_free_hdl;
|
||||
|
||||
vdebayer->sd.internal_ops = &vimc_debayer_internal_ops;
|
||||
|
||||
vdebayer->ved.process_frame = vimc_debayer_process_frame;
|
||||
vdebayer->ved.dev = vimc->mdev.dev;
|
||||
vdebayer->mean_win_size = vimc_debayer_ctrl_mean_win_size.def;
|
||||
|
||||
Reference in New Issue
Block a user