.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * 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. |
---|
12 | 4 | */ |
---|
13 | 5 | #include <linux/kernel.h> |
---|
14 | 6 | #include <linux/init.h> |
---|
.. | .. |
---|
90 | 82 | } |
---|
91 | 83 | |
---|
92 | 84 | 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; |
---|
115 | 85 | } |
---|
116 | 86 | |
---|
117 | 87 | /** |
---|
.. | .. |
---|
264 | 234 | goto unlock; |
---|
265 | 235 | |
---|
266 | 236 | /* |
---|
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 |
---|
268 | 238 | * mode in the sub device. For external encoder or LCD pannel output, |
---|
269 | 239 | * we also need to set up the lcd port for the required mode. So setup |
---|
270 | 240 | * the lcd port for the default mode that is configured in the board |
---|
.. | .. |
---|
796 | 766 | } |
---|
797 | 767 | |
---|
798 | 768 | static const struct vpbe_device_ops vpbe_dev_ops = { |
---|
799 | | - .g_cropcap = vpbe_g_cropcap, |
---|
800 | 769 | .enum_outputs = vpbe_enum_outputs, |
---|
801 | 770 | .set_output = vpbe_set_output, |
---|
802 | 771 | .get_output = vpbe_get_output, |
---|