V4L/DVB: cx25821: prepend cx25821_ to video exported symbols
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): 80bc72ca1f90beb741211d6ba44fd5c339eb2bf4.1269459559.git.mchehab@redhat.com
PATCH 2/2 V4L/DVB: cx25821: prepend cx25821_ to video exported symbols
As reported by Randy Dunlap <[email protected]>:
drivers/staging/cx25821/cx25821-video.c:89:struct cx25821_fmt *format_by_fourcc(unsigned int fourcc) (not static)
conflicts with (has the same non-static name as)
drivers/media/common/saa7146_video.c:87:struct saa7146_format* format_by_fourcc(struct saa7146_dev *dev, int fourcc)
To solve, add cx25821_ prefix to the exported functions found on cx25821-video.h.
This patch were generated by this little shell/perl script:
cat drivers/staging/cx25821/cx25821-video.h|perl -ne \
'if (m/extern.* ([^\s\*]+)\(/) { $n=$1; print "s/([^\d\w_\.])$1/\\1cx25821_$1/g;\n" if (!($n =~ m/cx25821/)); }' \
Quoted 1 line
changes; for i in drivers/staging/cx25821/*.[ch]; do sed -r -f changes $i >a && mv a $i; done
drivers/staging/cx25821/cx25821-audups11.c +39 -39
@@ -86,10 +86,10 @@ static void buffer_queue(struct videobuf_queue *vq, struct videobuf_buffer *vb) }static struct videobuf_queue_ops cx25821_video_qops = { - .buf_setup = buffer_setup, - .buf_prepare = buffer_prepare, + .buf_setup = cx25821_buffer_setup, + .buf_prepare = cx25821_buffer_prepare, .buf_queue = buffer_queue, - .buf_release = buffer_release, + .buf_release = cx25821_buffer_release, };static int video_open (struct file *file)
@@ -143,7 +143,7 @@ static ssize_t video_read(struct file *file, char __user * data, size_t count,switch (fh->type) {case V4L2_BUF_TYPE_VIDEO_CAPTURE : -if (res_locked (fh->dev,RESOURCE_VIDEO11 )) +if (cx25821_res_locked (fh->dev,RESOURCE_VIDEO11 ))return -EBUSY ; return videobuf_read_one(&fh->vidq, data, count, ppos,
@@ -161,7 +161,7 @@ static unsigned int video_poll(struct file *file,struct cx25821_fh *fh = file->private_data;struct cx25821_buffer *buf; -if (res_check (fh,RESOURCE_VIDEO11 )) { +if (cx25821_res_check (fh,RESOURCE_VIDEO11 )) {/* streaming capture */ if (list_empty (&fh->vidq.stream))return POLLERR ;
@@ -189,13 +189,13 @@ static int video_release(struct file *file)//cx_write(channel11->dma_ctl, 0); /* stop video capture */ -if (res_check (fh,RESOURCE_VIDEO11 )) { +if (cx25821_res_check (fh,RESOURCE_VIDEO11 )) {videobuf_queue_cancel (&fh->vidq); -res_free (dev, fh,RESOURCE_VIDEO11 ); +cx25821_res_free (dev, fh,RESOURCE_VIDEO11 ); }if (fh->vidq.read_buf) { -buffer_release (&fh->vidq, fh->vidq.read_buf); +cx25821_buffer_release (&fh->vidq, fh->vidq.read_buf);kfree (fh->vidq.read_buf); }
@@ -222,7 +222,7 @@ static int vidioc_streamon(struct file *file, void *priv, enum v4l2_buf_type i)return -EINVAL ; } -if (unlikely (!res_get (dev, fh,get_resource (fh,RESOURCE_VIDEO11 )))) { +if (unlikely (!cx25821_res_get (dev, fh,cx25821_get_resource (fh,RESOURCE_VIDEO11 )))) {return -EBUSY ; }
@@ -240,11 +240,11 @@ static int vidioc_streamoff(struct file *file, void *priv, enum v4l2_buf_type i)if (i != fh->type)return -EINVAL ; - res =get_resource (fh,RESOURCE_VIDEO11 ); + res =cx25821_get_resource (fh,RESOURCE_VIDEO11 ); err =videobuf_streamoff (get_queue (fh));if (err <0 )return err; -res_free (dev, fh, res); +cx25821_res_free (dev, fh, res);return 0 ; }
@@ -262,7 +262,7 @@ static int vidioc_s_fmt_vid_cap(struct file *file, void *priv, }dprintk (2 ,"%s()\n" , __func__); - err =vidioc_try_fmt_vid_cap (file, priv, f); + err =cx25821_vidioc_try_fmt_vid_cap (file, priv, f);if (0 != err)return err;
@@ -361,50 +361,50 @@ static const struct v4l2_file_operations video_fops = { .release = video_release, .read = video_read, .poll = video_poll, - .mmap = video_mmap, + .mmap = cx25821_video_mmap, .ioctl = video_ioctl_upstream11, };static const struct v4l2_ioctl_ops video_ioctl_ops = { - .vidioc_querycap = vidioc_querycap, - .vidioc_enum_fmt_vid_cap = vidioc_enum_fmt_vid_cap, - .vidioc_g_fmt_vid_cap = vidioc_g_fmt_vid_cap, - .vidioc_try_fmt_vid_cap = vidioc_try_fmt_vid_cap, + .vidioc_querycap = cx25821_vidioc_querycap, + .vidioc_enum_fmt_vid_cap = cx25821_vidioc_enum_fmt_vid_cap, + .vidioc_g_fmt_vid_cap = cx25821_vidioc_g_fmt_vid_cap, + .vidioc_try_fmt_vid_cap = cx25821_vidioc_try_fmt_vid_cap, .vidioc_s_fmt_vid_cap = vidioc_s_fmt_vid_cap, - .vidioc_reqbufs = vidioc_reqbufs, - .vidioc_querybuf = vidioc_querybuf, - .vidioc_qbuf = vidioc_qbuf, + .vidioc_reqbufs = cx25821_vidioc_reqbufs, + .vidioc_querybuf = cx25821_vidioc_querybuf, + .vidioc_qbuf = cx25821_vidioc_qbuf, .vidioc_dqbuf = vidioc_dqbuf, #ifdef TUNER_FLAG - .vidioc_s_std = vidioc_s_std, - .vidioc_querystd = vidioc_querystd, + .vidioc_s_std = cx25821_vidioc_s_std, + .vidioc_querystd = cx25821_vidioc_querystd, #endif - .vidioc_cropcap = vidioc_cropcap, - .vidioc_s_crop = vidioc_s_crop, - .vidioc_g_crop = vidioc_g_crop, - .vidioc_enum_input = vidioc_enum_input, - .vidioc_g_input = vidioc_g_input, - .vidioc_s_input = vidioc_s_input, - .vidioc_g_ctrl = vidioc_g_ctrl, + .vidioc_cropcap = cx25821_vidioc_cropcap, + .vidioc_s_crop = cx25821_vidioc_s_crop, + .vidioc_g_crop = cx25821_vidioc_g_crop, + .vidioc_enum_input = cx25821_vidioc_enum_input, + .vidioc_g_input = cx25821_vidioc_g_input, + .vidioc_s_input = cx25821_vidioc_s_input, + .vidioc_g_ctrl = cx25821_vidioc_g_ctrl, .vidioc_s_ctrl = vidioc_s_ctrl, - .vidioc_queryctrl = vidioc_queryctrl, + .vidioc_queryctrl = cx25821_vidioc_queryctrl, .vidioc_streamon = vidioc_streamon, .vidioc_streamoff = vidioc_streamoff, .vidioc_log_status = vidioc_log_status, - .vidioc_g_priority = vidioc_g_priority, - .vidioc_s_priority = vidioc_s_priority, + .vidioc_g_priority = cx25821_vidioc_g_priority, + .vidioc_s_priority = cx25821_vidioc_s_priority, #ifdef CONFIG_VIDEO_V4L1_COMPAT - .vidiocgmbuf = vidiocgmbuf, + .vidiocgmbuf = cx25821_vidiocgmbuf, #endif #ifdef TUNER_FLAG - .vidioc_g_tuner = vidioc_g_tuner, - .vidioc_s_tuner = vidioc_s_tuner, - .vidioc_g_frequency = vidioc_g_frequency, - .vidioc_s_frequency = vidioc_s_frequency, + .vidioc_g_tuner = cx25821_vidioc_g_tuner, + .vidioc_s_tuner = cx25821_vidioc_s_tuner, + .vidioc_g_frequency = cx25821_vidioc_g_frequency, + .vidioc_s_frequency = cx25821_vidioc_s_frequency, #endif #ifdef CONFIG_VIDEO_ADV_DEBUG - .vidioc_g_register = vidioc_g_register, - .vidioc_s_register = vidioc_s_register, + .vidioc_g_register = cx25821_vidioc_g_register, + .vidioc_s_register = cx25821_vidioc_s_register, #endif };
drivers/staging/cx25821/cx25821-core.c +2 -2
@@ -863,7 +863,7 @@ static void cx25821_initialize(struct cx25821_dev *dev)cx25821_gpio_init (dev); } -static int get_resources (struct cx25821_dev *dev) +static int cx25821_get_resources (struct cx25821_dev *dev) { if (request_mem_region (pci_resource_start(dev->pci, 0), pci_resource_len(dev->pci, 0),
@@ -970,7 +970,7 @@ static int cx25821_dev_setup(struct cx25821_dev *dev) dev->i2c_bus[0 ].i2c_period = (0x07 <<24 );/* 1.95MHz */ -if (get_resources (dev) <0 ) { +if (cx25821_get_resources (dev) <0 ) { printk(KERN_ERR "%s No more PCIe resources for " "subsystem: %04x:%04x\n", dev->name, dev->pci->subsystem_vendor,
drivers/staging/cx25821/cx25821-video.c +41 -41
310 lines not on this page · raw message
drivers/staging/cx25821/cx25821-video.h +39 -39
124 lines not on this page · raw message
drivers/staging/cx25821/cx25821-video0.c +41 -41
164 lines not on this page · raw message
drivers/staging/cx25821/cx25821-video1.c +41 -41
164 lines not on this page · raw message
drivers/staging/cx25821/cx25821-video2.c +41 -41
164 lines not on this page · raw message
drivers/staging/cx25821/cx25821-video3.c +41 -41
164 lines not on this page · raw message
drivers/staging/cx25821/cx25821-video4.c +41 -41
164 lines not on this page · raw message
drivers/staging/cx25821/cx25821-video5.c +41 -41
164 lines not on this page · raw message
drivers/staging/cx25821/cx25821-video6.c +41 -41
163 lines not on this page · raw message
drivers/staging/cx25821/cx25821-video7.c +41 -41
164 lines not on this page · raw message
drivers/staging/cx25821/cx25821-videoioctl.c +39 -39
151 lines not on this page · raw message
drivers/staging/cx25821/cx25821-vidups10.c +39 -39
151 lines not on this page · raw message
drivers/staging/cx25821/cx25821-vidups9.c +39 -39
151 lines not on this page · raw message
Signature · 1 line
1.6.6.1