Commit e3a900a8 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[media] tw686x-kh: rename three functions to prevent clash with tw686x driver

Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 2e2dedb9
......@@ -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);
......@@ -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;
......@@ -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 */
......
......@@ -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,
......@@ -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,
......@@ -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;
......@@ -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;
......@@ -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;
......@@ -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;
}
......@@ -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);
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