aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/radio/si470x/radio-si470x-i2c.c
diff options
context:
space:
mode:
authorJoonyoung Shim <jy0922.shim@samsung.com>2009-12-10 14:49:34 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-15 21:18:34 -0500
commit1aa925c957d37e077edb1de4553481734b8462cf (patch)
treea85e069a76a3db0fe2333d27465d3291add3ef14 /drivers/media/radio/si470x/radio-si470x-i2c.c
parent31bedfa5068936b15a388842be1d03cdd1bdfb07 (diff)
V4L/DVB (13599): radio-si470x: move some file operations to common file
The read and poll file operations of the si470x usb driver can be used also equally on the si470x i2c driver, so they go to the common file. Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com> Acked-by: Tobias Lorenz <tobias.lorenz@gmx.net> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/radio/si470x/radio-si470x-i2c.c')
-rw-r--r--drivers/media/radio/si470x/radio-si470x-i2c.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/media/radio/si470x/radio-si470x-i2c.c b/drivers/media/radio/si470x/radio-si470x-i2c.c
index 2d53b6a9409..4816a6d501c 100644
--- a/drivers/media/radio/si470x/radio-si470x-i2c.c
+++ b/drivers/media/radio/si470x/radio-si470x-i2c.c
@@ -173,7 +173,7 @@ int si470x_disconnect_check(struct si470x_device *radio)
173/* 173/*
174 * si470x_fops_open - file open 174 * si470x_fops_open - file open
175 */ 175 */
176static int si470x_fops_open(struct file *file) 176int si470x_fops_open(struct file *file)
177{ 177{
178 struct si470x_device *radio = video_drvdata(file); 178 struct si470x_device *radio = video_drvdata(file);
179 int retval = 0; 179 int retval = 0;
@@ -194,7 +194,7 @@ static int si470x_fops_open(struct file *file)
194/* 194/*
195 * si470x_fops_release - file release 195 * si470x_fops_release - file release
196 */ 196 */
197static int si470x_fops_release(struct file *file) 197int si470x_fops_release(struct file *file)
198{ 198{
199 struct si470x_device *radio = video_drvdata(file); 199 struct si470x_device *radio = video_drvdata(file);
200 int retval = 0; 200 int retval = 0;
@@ -215,17 +215,6 @@ static int si470x_fops_release(struct file *file)
215} 215}
216 216
217 217
218/*
219 * si470x_fops - file operations interface
220 */
221const struct v4l2_file_operations si470x_fops = {
222 .owner = THIS_MODULE,
223 .ioctl = video_ioctl2,
224 .open = si470x_fops_open,
225 .release = si470x_fops_release,
226};
227
228
229 218
230/************************************************************************** 219/**************************************************************************
231 * Video4Linux Interface 220 * Video4Linux Interface