mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 08:08:54 +00:00
media: davinci/vpbe: drop unused g_cropcap
This function/callback is never used. Drop it. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
8cbd94bda9
commit
98af278b1e
2 changed files with 0 additions and 27 deletions
|
@ -92,28 +92,6 @@ static int vpbe_find_encoder_sd_index(struct vpbe_config *cfg,
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* vpbe_g_cropcap - Get crop capabilities of the display
|
|
||||||
* @vpbe_dev: vpbe device ptr
|
|
||||||
* @cropcap: cropcap is a ptr to struct v4l2_cropcap
|
|
||||||
*
|
|
||||||
* Update the crop capabilities in crop cap for current
|
|
||||||
* mode
|
|
||||||
*/
|
|
||||||
static int vpbe_g_cropcap(struct vpbe_device *vpbe_dev,
|
|
||||||
struct v4l2_cropcap *cropcap)
|
|
||||||
{
|
|
||||||
if (!cropcap)
|
|
||||||
return -EINVAL;
|
|
||||||
cropcap->bounds.left = 0;
|
|
||||||
cropcap->bounds.top = 0;
|
|
||||||
cropcap->bounds.width = vpbe_dev->current_timings.xres;
|
|
||||||
cropcap->bounds.height = vpbe_dev->current_timings.yres;
|
|
||||||
cropcap->defrect = cropcap->bounds;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* vpbe_enum_outputs - enumerate outputs
|
* vpbe_enum_outputs - enumerate outputs
|
||||||
* @vpbe_dev: vpbe device ptr
|
* @vpbe_dev: vpbe device ptr
|
||||||
|
@ -793,7 +771,6 @@ static void vpbe_deinitialize(struct device *dev, struct vpbe_device *vpbe_dev)
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct vpbe_device_ops vpbe_dev_ops = {
|
static const struct vpbe_device_ops vpbe_dev_ops = {
|
||||||
.g_cropcap = vpbe_g_cropcap,
|
|
||||||
.enum_outputs = vpbe_enum_outputs,
|
.enum_outputs = vpbe_enum_outputs,
|
||||||
.set_output = vpbe_set_output,
|
.set_output = vpbe_set_output,
|
||||||
.get_output = vpbe_get_output,
|
.get_output = vpbe_get_output,
|
||||||
|
|
|
@ -100,10 +100,6 @@ struct vpbe_config {
|
||||||
struct vpbe_device;
|
struct vpbe_device;
|
||||||
|
|
||||||
struct vpbe_device_ops {
|
struct vpbe_device_ops {
|
||||||
/* crop cap for the display */
|
|
||||||
int (*g_cropcap)(struct vpbe_device *vpbe_dev,
|
|
||||||
struct v4l2_cropcap *cropcap);
|
|
||||||
|
|
||||||
/* Enumerate the outputs */
|
/* Enumerate the outputs */
|
||||||
int (*enum_outputs)(struct vpbe_device *vpbe_dev,
|
int (*enum_outputs)(struct vpbe_device *vpbe_dev,
|
||||||
struct v4l2_output *output);
|
struct v4l2_output *output);
|
||||||
|
|
Loading…
Reference in a new issue