forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/platform/davinci/vpbe.c
....@@ -1,14 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2010 Texas Instruments Inc
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 as published by
6
- * the Free Software Foundation version 2.
7
- *
8
- * This program is distributed in the hope that it will be useful,
9
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- * GNU General Public License for more details.
124 */
135 #include <linux/kernel.h>
146 #include <linux/init.h>
....@@ -90,28 +82,6 @@
9082 }
9183
9284 return -EINVAL;
93
-}
94
-
95
-/**
96
- * vpbe_g_cropcap - Get crop capabilities of the display
97
- * @vpbe_dev: vpbe device ptr
98
- * @cropcap: cropcap is a ptr to struct v4l2_cropcap
99
- *
100
- * Update the crop capabilities in crop cap for current
101
- * mode
102
- */
103
-static int vpbe_g_cropcap(struct vpbe_device *vpbe_dev,
104
- struct v4l2_cropcap *cropcap)
105
-{
106
- if (!cropcap)
107
- return -EINVAL;
108
- cropcap->bounds.left = 0;
109
- cropcap->bounds.top = 0;
110
- cropcap->bounds.width = vpbe_dev->current_timings.xres;
111
- cropcap->bounds.height = vpbe_dev->current_timings.yres;
112
- cropcap->defrect = cropcap->bounds;
113
-
114
- return 0;
11585 }
11686
11787 /**
....@@ -264,7 +234,7 @@
264234 goto unlock;
265235
266236 /*
267
- * It is assumed that venc or extenal encoder will set a default
237
+ * It is assumed that venc or external encoder will set a default
268238 * mode in the sub device. For external encoder or LCD pannel output,
269239 * we also need to set up the lcd port for the required mode. So setup
270240 * the lcd port for the default mode that is configured in the board
....@@ -796,7 +766,6 @@
796766 }
797767
798768 static const struct vpbe_device_ops vpbe_dev_ops = {
799
- .g_cropcap = vpbe_g_cropcap,
800769 .enum_outputs = vpbe_enum_outputs,
801770 .set_output = vpbe_set_output,
802771 .get_output = vpbe_get_output,