forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/media/platform/exynos4-is/media-dev.h
....@@ -1,9 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2011 - 2012 Samsung Electronics Co., Ltd.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
74 */
85
96 #ifndef FIMC_MDEVICE_H_
....@@ -29,8 +26,6 @@
2926 #define FIMC_LITE_OF_NODE_NAME "fimc-lite"
3027 #define FIMC_IS_OF_NODE_NAME "fimc-is"
3128 #define CSIS_OF_NODE_NAME "csis"
32
-
33
-#define PINCTRL_STATE_IDLE "idle"
3429
3530 #define FIMC_MAX_SENSORS 4
3631 #define FIMC_MAX_CAMCLKS 2
....@@ -79,7 +74,7 @@
7974
8075 /**
8176 * struct fimc_sensor_info - image data source subdev information
82
- * @pdata: sensor's atrributes passed as media device's platform data
77
+ * @pdata: sensor's attributes passed as media device's platform data
8378 * @asd: asynchronous subdev registration data structure
8479 * @subdev: image sensor v4l2 subdev
8580 * @host: fimc device the sensor is currently linked to
....@@ -88,7 +83,7 @@
8883 */
8984 struct fimc_sensor_info {
9085 struct fimc_source_info pdata;
91
- struct v4l2_async_subdev asd;
86
+ struct v4l2_async_subdev *asd;
9287 struct v4l2_subdev *subdev;
9388 struct fimc_dev *host;
9489 };
....@@ -112,9 +107,6 @@
112107 * @media_dev: top level media device
113108 * @v4l2_dev: top level v4l2_device holding up the subdevs
114109 * @pdev: platform device this media device is hooked up into
115
- * @pinctrl: camera port pinctrl handle
116
- * @state_default: pinctrl default state handle
117
- * @state_idle: pinctrl idle state handle
118110 * @cam_clk_provider: CAMCLK clock provider structure
119111 * @user_subdev_api: true if subdevs are not configured by the host driver
120112 * @slock: spinlock protecting @sensor array
....@@ -134,12 +126,6 @@
134126 struct v4l2_device v4l2_dev;
135127 struct platform_device *pdev;
136128
137
- struct fimc_pinctrl {
138
- struct pinctrl *pinctrl;
139
- struct pinctrl_state *state_default;
140
- struct pinctrl_state *state_idle;
141
- } pinctl;
142
-
143129 struct cam_clk_provider {
144130 struct clk *clks[FIMC_MAX_CAMCLKS];
145131 struct clk_onecell_data clk_data;
....@@ -149,7 +135,6 @@
149135 } clk_provider;
150136
151137 struct v4l2_async_notifier subdev_notifier;
152
- struct v4l2_async_subdev *async_subdevs[FIMC_MAX_SENSORS];
153138
154139 bool user_subdev_api;
155140 spinlock_t slock;