// SPDX-License-Identifier: GPL-2.0 /* * Samsung Exynos SoC series Pablo driver * * Copyright (c) 2021 Samsung Electronics Co., Ltd * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "is-core.h" #include "is-cmd.h" #include "is-err.h" #include "is-video.h" #include "is-dvfs.h" int is_rgbp_video_probe(void *data) { struct is_core *core = (struct is_core *)data; struct is_video *video; int ret; video = &core->video_rgbp; video->resourcemgr = &core->resourcemgr; video->group_id = GROUP_ID_RGBP; video->group_ofs = offsetof(struct is_device_ischain, group_rgbp); video->subdev_id = ENTRY_RGBP; video->subdev_ofs = offsetof(struct is_group, leader); video->buf_rdycount = 0; ret = is_video_probe(video, IS_VIDEO_RGBP_NAME, IS_VIDEO_RGBP, VFL_DIR_M2M, &core->resourcemgr.mem, &core->v4l2_dev, NULL, NULL, NULL); if (ret) dev_err(&core->pdev->dev, "failure in is_video_probe(): %d)\n", ret); return ret; }