diff options
| author | Laurent Pinchart <[email protected]> | 2024-04-24 23:57:37 +0000 |
|---|---|---|
| committer | Hans Verkuil <[email protected]> | 2024-06-26 14:39:34 +0000 |
| commit | 556d821ade98edd76c59368a3301fbb30014b851 (patch) | |
| tree | 7ad96b266f4f16db4f472191476f31a03eda12de /drivers/media/test-drivers/vimc/vimc-scaler.c | |
| parent | media: vimc: scaler: Rename vic_sca_pad enum to vimc_scaler_pad (diff) | |
| download | kernel-556d821ade98edd76c59368a3301fbb30014b851.tar.gz kernel-556d821ade98edd76c59368a3301fbb30014b851.zip | |
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 <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'drivers/media/test-drivers/vimc/vimc-scaler.c')
| -rw-r--r-- | drivers/media/test-drivers/vimc/vimc-scaler.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/test-drivers/vimc/vimc-scaler.c b/drivers/media/test-drivers/vimc/vimc-scaler.c index 013cd84f82be..4f9c44a663e1 100644 --- a/drivers/media/test-drivers/vimc/vimc-scaler.c +++ b/drivers/media/test-drivers/vimc/vimc-scaler.c @@ -421,14 +421,13 @@ static struct vimc_ent_device *vimc_scaler_add(struct vimc_device *vimc, ret = vimc_ent_sd_register(&vscaler->ved, &vscaler->sd, v4l2_dev, vcfg_name, MEDIA_ENT_F_PROC_VIDEO_SCALER, 2, - vscaler->pads, &vimc_scaler_ops); + vscaler->pads, &vimc_scaler_internal_ops, + &vimc_scaler_ops); if (ret) { kfree(vscaler); return ERR_PTR(ret); } - vscaler->sd.internal_ops = &vimc_scaler_internal_ops; - vscaler->ved.process_frame = vimc_scaler_process_frame; vscaler->ved.dev = vimc->mdev.dev; |
