Commit 90874cd6 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

dt3155: fix CodingStyle issues

There are a few lines longer than 80 cols for no good reason.
Fix them sooner than latter, making checkpatch.pl happy.

Cc: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 7c89a21b
...@@ -303,7 +303,8 @@ static const struct v4l2_file_operations dt3155_fops = { ...@@ -303,7 +303,8 @@ static const struct v4l2_file_operations dt3155_fops = {
.poll = vb2_fop_poll .poll = vb2_fop_poll
}; };
static int dt3155_querycap(struct file *filp, void *p, struct v4l2_capability *cap) static int dt3155_querycap(struct file *filp, void *p,
struct v4l2_capability *cap)
{ {
struct dt3155_priv *pd = video_drvdata(filp); struct dt3155_priv *pd = video_drvdata(filp);
...@@ -316,7 +317,8 @@ static int dt3155_querycap(struct file *filp, void *p, struct v4l2_capability *c ...@@ -316,7 +317,8 @@ static int dt3155_querycap(struct file *filp, void *p, struct v4l2_capability *c
return 0; return 0;
} }
static int dt3155_enum_fmt_vid_cap(struct file *filp, void *p, struct v4l2_fmtdesc *f) static int dt3155_enum_fmt_vid_cap(struct file *filp,
void *p, struct v4l2_fmtdesc *f)
{ {
if (f->index) if (f->index)
return -EINVAL; return -EINVAL;
...@@ -368,12 +370,14 @@ static int dt3155_s_std(struct file *filp, void *p, v4l2_std_id norm) ...@@ -368,12 +370,14 @@ static int dt3155_s_std(struct file *filp, void *p, v4l2_std_id norm)
return 0; return 0;
} }
static int dt3155_enum_input(struct file *filp, void *p, struct v4l2_input *input) static int dt3155_enum_input(struct file *filp, void *p,
struct v4l2_input *input)
{ {
if (input->index > 3) if (input->index > 3)
return -EINVAL; return -EINVAL;
if (input->index) if (input->index)
snprintf(input->name, sizeof(input->name), "VID%d", input->index); snprintf(input->name, sizeof(input->name), "VID%d",
input->index);
else else
strlcpy(input->name, "J2/VID0", sizeof(input->name)); strlcpy(input->name, "J2/VID0", sizeof(input->name));
input->type = V4L2_INPUT_TYPE_CAMERA; input->type = V4L2_INPUT_TYPE_CAMERA;
...@@ -594,7 +598,8 @@ static int dt3155_probe(struct pci_dev *pdev, const struct pci_device_id *id) ...@@ -594,7 +598,8 @@ static int dt3155_probe(struct pci_dev *pdev, const struct pci_device_id *id)
static void dt3155_remove(struct pci_dev *pdev) static void dt3155_remove(struct pci_dev *pdev)
{ {
struct v4l2_device *v4l2_dev = pci_get_drvdata(pdev); struct v4l2_device *v4l2_dev = pci_get_drvdata(pdev);
struct dt3155_priv *pd = container_of(v4l2_dev, struct dt3155_priv, v4l2_dev); struct dt3155_priv *pd = container_of(v4l2_dev, struct dt3155_priv,
v4l2_dev);
video_unregister_device(&pd->vdev); video_unregister_device(&pd->vdev);
free_irq(pd->pdev->irq, pd); free_irq(pd->pdev->irq, pd);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment