Skip to content

Commit

Permalink
[media] tw686x-kh: rename three functions to prevent clash with tw686…
Browse files Browse the repository at this point in the history
…x driver

Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
Hans Verkuil authored and mchehab committed Apr 20, 2016
1 parent 2e2dedb commit e3a900a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/media/tw686x-kh/tw686x-kh-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static irqreturn_t tw686x_irq(int irq, void *dev_id)
spin_unlock_irqrestore(&dev->irq_lock, flags);

if (int_status & 0xFF0000FF)
handled = tw686x_video_irq(dev);
handled = tw686x_kh_video_irq(dev);
}

return IRQ_RETVAL(handled);
Expand Down Expand Up @@ -99,7 +99,7 @@ static int tw686x_probe(struct pci_dev *pci_dev,
return err;
}

err = tw686x_video_init(dev);
err = tw686x_kh_video_init(dev);
if (err)
return err;

Expand All @@ -111,7 +111,7 @@ static void tw686x_remove(struct pci_dev *pci_dev)
{
struct tw686x_dev *dev = pci_get_drvdata(pci_dev);

tw686x_video_free(dev);
tw686x_kh_video_free(dev);
}

/* driver_data is number of A/V channels */
Expand Down
12 changes: 6 additions & 6 deletions drivers/staging/media/tw686x-kh/tw686x-kh-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ static int tw686x_s_input(struct file *file, void *priv, unsigned int v)
return 0;
}

const struct v4l2_file_operations tw686x_video_fops = {
static const struct v4l2_file_operations tw686x_video_fops = {
.owner = THIS_MODULE,
.open = v4l2_fh_open,
.unlocked_ioctl = video_ioctl2,
Expand All @@ -513,7 +513,7 @@ const struct v4l2_file_operations tw686x_video_fops = {
.mmap = vb2_fop_mmap,
};

const struct v4l2_ioctl_ops tw686x_video_ioctl_ops = {
static const struct v4l2_ioctl_ops tw686x_video_ioctl_ops = {
.vidioc_querycap = tw686x_querycap,
.vidioc_enum_fmt_vid_cap = tw686x_enum_fmt_vid_cap,
.vidioc_g_fmt_vid_cap = tw686x_g_fmt_vid_cap,
Expand Down Expand Up @@ -616,7 +616,7 @@ static int video_thread(void *arg)
return 0;
}

int tw686x_video_irq(struct tw686x_dev *dev)
int tw686x_kh_video_irq(struct tw686x_dev *dev)
{
unsigned long flags, handled = 0;
u32 requests;
Expand All @@ -632,7 +632,7 @@ int tw686x_video_irq(struct tw686x_dev *dev)
return handled;
}

void tw686x_video_free(struct tw686x_dev *dev)
void tw686x_kh_video_free(struct tw686x_dev *dev)
{
unsigned int ch, n;

Expand Down Expand Up @@ -660,7 +660,7 @@ void tw686x_video_free(struct tw686x_dev *dev)

#define SG_TABLE_SIZE (MAX_SG_DESC_COUNT * sizeof(struct vdma_desc))

int tw686x_video_init(struct tw686x_dev *dev)
int tw686x_kh_video_init(struct tw686x_dev *dev)
{
unsigned int ch, n;
int err;
Expand Down Expand Up @@ -816,6 +816,6 @@ int tw686x_video_init(struct tw686x_dev *dev)
return 0;

error:
tw686x_video_free(dev);
tw686x_kh_video_free(dev);
return err;
}
6 changes: 3 additions & 3 deletions drivers/staging/media/tw686x-kh/tw686x-kh.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,6 @@ static inline unsigned int is_second_gen(struct tw686x_dev *dev)
return dev->type & TYPE_SECOND_GEN;
}

int tw686x_video_irq(struct tw686x_dev *dev);
int tw686x_video_init(struct tw686x_dev *dev);
void tw686x_video_free(struct tw686x_dev *dev);
int tw686x_kh_video_irq(struct tw686x_dev *dev);
int tw686x_kh_video_init(struct tw686x_dev *dev);
void tw686x_kh_video_free(struct tw686x_dev *dev);

0 comments on commit e3a900a

Please sign in to comment.