From 20ce5d15191026d324f2905a914a170da6f5ee0c Mon Sep 17 00:00:00 2001 From: Rakibul Hassan Date: Thu, 4 Jul 2024 00:24:52 +0000 Subject: [PATCH] capture: isp: add file ops This change does the following: - Rename tegra194_isp5_ctrl_ops to isp_ctrl_ops - Add isp_ctrl_ops to structs that missed it Without this change, we see errors from core_scf when it attempts to open /dev/nvhost-ctrl-isp and /dev/nvhost-ctrl-isp1 Jira CT26X-1679 Change-Id: Ief17d6a5e25efb9549f430bb41e3efd201e118db Signed-off-by: Rakibul Hassan Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3168176 Reviewed-by: Bitan Biswas Reviewed-by: Shubham Chandra Tested-by: Shubham Chandra GVS: buildbot_gerritrpt Reviewed-by: svcacv Reviewed-by: Praveen AC Reviewed-by: Ankur Pawar --- drivers/video/tegra/host/isp/isp5.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/video/tegra/host/isp/isp5.c b/drivers/video/tegra/host/isp/isp5.c index 516be7d6..5544fb07 100644 --- a/drivers/video/tegra/host/isp/isp5.c +++ b/drivers/video/tegra/host/isp/isp5.c @@ -302,7 +302,7 @@ static int isp_release(struct inode *inode, struct file *file) return 0; } -const struct file_operations tegra194_isp5_ctrl_ops = { +const struct file_operations isp_ctrl_ops = { .owner = THIS_MODULE, .open = isp_open, .unlocked_ioctl = isp_ioctl, @@ -330,7 +330,7 @@ struct nvhost_device_data t19_isp5_info = { .clocks = { {"isp", UINT_MAX}, }, - .ctrl_ops = &tegra194_isp5_ctrl_ops, + .ctrl_ops = &isp_ctrl_ops, .pre_virt_init = isp5_priv_early_probe, .post_virt_init = isp5_priv_late_probe, .autosuspend_delay = 500, @@ -344,6 +344,7 @@ struct nvhost_device_data t264_isp_info = { .clocks = { {"isp", UINT_MAX}, }, + .ctrl_ops = &isp_ctrl_ops, .pre_virt_init = isp5_priv_early_probe, .post_virt_init = isp5_priv_late_probe, .can_powergate = false, @@ -356,6 +357,7 @@ struct nvhost_device_data t264_isp1_info = { .clocks = { {"isp1", UINT_MAX}, }, + .ctrl_ops = &isp_ctrl_ops, .pre_virt_init = isp5_priv_early_probe, .post_virt_init = isp5_priv_late_probe, .can_powergate = false,