Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261392
b: refs/heads/master
c: 8318a64
h: refs/heads/master
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent 208f7ca commit 1d593eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 14c5ea9bb411f094160626daed03c67641be076a
refs/heads/master: 8318a64b892a4de629c3365b3acd8f7d2d7e6100
17 changes: 5 additions & 12 deletions trunk/drivers/media/video/soc_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,22 +199,15 @@ static int soc_camera_try_fmt_vid_cap(struct file *file, void *priv,
static int soc_camera_enum_input(struct file *file, void *priv,
struct v4l2_input *inp)
{
struct soc_camera_device *icd = file->private_data;
int ret = 0;

if (inp->index != 0)
return -EINVAL;

if (icd->ops->enum_input)
ret = icd->ops->enum_input(icd, inp);
else {
/* default is camera */
inp->type = V4L2_INPUT_TYPE_CAMERA;
inp->std = V4L2_STD_UNKNOWN;
strcpy(inp->name, "Camera");
}
/* default is camera */
inp->type = V4L2_INPUT_TYPE_CAMERA;
inp->std = V4L2_STD_UNKNOWN;
strcpy(inp->name, "Camera");

return ret;
return 0;
}

static int soc_camera_g_input(struct file *file, void *priv, unsigned int *i)
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/media/soc_camera.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,8 @@ struct soc_camera_format_xlate {
};

struct soc_camera_ops {
int (*suspend)(struct soc_camera_device *, pm_message_t state);
int (*resume)(struct soc_camera_device *);
unsigned long (*query_bus_param)(struct soc_camera_device *);
int (*set_bus_param)(struct soc_camera_device *, unsigned long);
int (*enum_input)(struct soc_camera_device *, struct v4l2_input *);
const struct v4l2_queryctrl *controls;
int num_controls;
};
Expand Down

0 comments on commit 1d593eb

Please sign in to comment.