diff options
author | Arnd Bergmann <arnd@arndb.de> | 2006-01-09 12:24:57 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2006-01-09 12:24:57 -0500 |
commit | 0d0fbf8152fb3bb4393be11e8df7f70e1fbbd738 (patch) | |
tree | 98ef8850e6b769da7391665716e4e2348de21ec1 /drivers/media/radio | |
parent | 5367f2d67c7d0bf1faae90e6e7b4e2ac3c9b5e0f (diff) |
V4L (926_2): Moves compat32 functions from fs to v4l subsystem
This moves the 32 bit ioctl compatibility handlers for
Video4Linux into a new file and adds explicit calls to them
to each v4l device driver.
Unfortunately, there does not seem to be any code handling
the v4l2 ioctls, so quite often the code goes through two
separate conversions, first from 32 bit v4l to 64 bit v4l,
and from there to 64 bit v4l2. My patch does not change
that, so there is still much room for improvement.
Also, some drivers have additional ioctl numbers, for
which the conversion should be handled internally to
that driver.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'drivers/media/radio')
-rw-r--r-- | drivers/media/radio/miropcm20-radio.c | 1 | ||||
-rw-r--r-- | drivers/media/radio/radio-aimslab.c | 1 | ||||
-rw-r--r-- | drivers/media/radio/radio-aztech.c | 1 | ||||
-rw-r--r-- | drivers/media/radio/radio-cadet.c | 1 | ||||
-rw-r--r-- | drivers/media/radio/radio-gemtek-pci.c | 1 | ||||
-rw-r--r-- | drivers/media/radio/radio-gemtek.c | 1 | ||||
-rw-r--r-- | drivers/media/radio/radio-maestro.c | 1 | ||||
-rw-r--r-- | drivers/media/radio/radio-maxiradio.c | 1 | ||||
-rw-r--r-- | drivers/media/radio/radio-rtrack2.c | 1 | ||||
-rw-r--r-- | drivers/media/radio/radio-sf16fmi.c | 1 | ||||
-rw-r--r-- | drivers/media/radio/radio-sf16fmr2.c | 1 | ||||
-rw-r--r-- | drivers/media/radio/radio-terratec.c | 1 | ||||
-rw-r--r-- | drivers/media/radio/radio-trust.c | 1 | ||||
-rw-r--r-- | drivers/media/radio/radio-typhoon.c | 1 | ||||
-rw-r--r-- | drivers/media/radio/radio-zoltrix.c | 1 |
15 files changed, 15 insertions, 0 deletions
diff --git a/drivers/media/radio/miropcm20-radio.c b/drivers/media/radio/miropcm20-radio.c index c2ebe8754a95..dc292da2605f 100644 --- a/drivers/media/radio/miropcm20-radio.c +++ b/drivers/media/radio/miropcm20-radio.c | |||
@@ -220,6 +220,7 @@ static struct file_operations pcm20_fops = { | |||
220 | .open = video_exclusive_open, | 220 | .open = video_exclusive_open, |
221 | .release = video_exclusive_release, | 221 | .release = video_exclusive_release, |
222 | .ioctl = pcm20_ioctl, | 222 | .ioctl = pcm20_ioctl, |
223 | .compat_ioctl = v4l_compat_ioctl32, | ||
223 | .llseek = no_llseek, | 224 | .llseek = no_llseek, |
224 | }; | 225 | }; |
225 | 226 | ||
diff --git a/drivers/media/radio/radio-aimslab.c b/drivers/media/radio/radio-aimslab.c index 877c770558e9..914deab4e044 100644 --- a/drivers/media/radio/radio-aimslab.c +++ b/drivers/media/radio/radio-aimslab.c | |||
@@ -299,6 +299,7 @@ static struct file_operations rtrack_fops = { | |||
299 | .open = video_exclusive_open, | 299 | .open = video_exclusive_open, |
300 | .release = video_exclusive_release, | 300 | .release = video_exclusive_release, |
301 | .ioctl = rt_ioctl, | 301 | .ioctl = rt_ioctl, |
302 | .compat_ioctl = v4l_compat_ioctl32, | ||
302 | .llseek = no_llseek, | 303 | .llseek = no_llseek, |
303 | }; | 304 | }; |
304 | 305 | ||
diff --git a/drivers/media/radio/radio-aztech.c b/drivers/media/radio/radio-aztech.c index 5319a9c9a979..523be820f9c6 100644 --- a/drivers/media/radio/radio-aztech.c +++ b/drivers/media/radio/radio-aztech.c | |||
@@ -256,6 +256,7 @@ static struct file_operations aztech_fops = { | |||
256 | .open = video_exclusive_open, | 256 | .open = video_exclusive_open, |
257 | .release = video_exclusive_release, | 257 | .release = video_exclusive_release, |
258 | .ioctl = az_ioctl, | 258 | .ioctl = az_ioctl, |
259 | .compat_ioctl = v4l_compat_ioctl32, | ||
259 | .llseek = no_llseek, | 260 | .llseek = no_llseek, |
260 | }; | 261 | }; |
261 | 262 | ||
diff --git a/drivers/media/radio/radio-cadet.c b/drivers/media/radio/radio-cadet.c index 9b0406318f2d..f1b5ac81e9d2 100644 --- a/drivers/media/radio/radio-cadet.c +++ b/drivers/media/radio/radio-cadet.c | |||
@@ -490,6 +490,7 @@ static struct file_operations cadet_fops = { | |||
490 | .release = cadet_release, | 490 | .release = cadet_release, |
491 | .read = cadet_read, | 491 | .read = cadet_read, |
492 | .ioctl = cadet_ioctl, | 492 | .ioctl = cadet_ioctl, |
493 | .compat_ioctl = v4l_compat_ioctl32, | ||
493 | .llseek = no_llseek, | 494 | .llseek = no_llseek, |
494 | }; | 495 | }; |
495 | 496 | ||
diff --git a/drivers/media/radio/radio-gemtek-pci.c b/drivers/media/radio/radio-gemtek-pci.c index 630cc786d0a4..42c8fce04aa2 100644 --- a/drivers/media/radio/radio-gemtek-pci.c +++ b/drivers/media/radio/radio-gemtek-pci.c | |||
@@ -301,6 +301,7 @@ static struct file_operations gemtek_pci_fops = { | |||
301 | .open = video_exclusive_open, | 301 | .open = video_exclusive_open, |
302 | .release = video_exclusive_release, | 302 | .release = video_exclusive_release, |
303 | .ioctl = gemtek_pci_ioctl, | 303 | .ioctl = gemtek_pci_ioctl, |
304 | .compat_ioctl = v4l_compat_ioctl32, | ||
304 | .llseek = no_llseek, | 305 | .llseek = no_llseek, |
305 | }; | 306 | }; |
306 | 307 | ||
diff --git a/drivers/media/radio/radio-gemtek.c b/drivers/media/radio/radio-gemtek.c index 6418f03b9ce4..47173be97b9f 100644 --- a/drivers/media/radio/radio-gemtek.c +++ b/drivers/media/radio/radio-gemtek.c | |||
@@ -233,6 +233,7 @@ static struct file_operations gemtek_fops = { | |||
233 | .open = video_exclusive_open, | 233 | .open = video_exclusive_open, |
234 | .release = video_exclusive_release, | 234 | .release = video_exclusive_release, |
235 | .ioctl = gemtek_ioctl, | 235 | .ioctl = gemtek_ioctl, |
236 | .compat_ioctl = v4l_compat_ioctl32, | ||
236 | .llseek = no_llseek, | 237 | .llseek = no_llseek, |
237 | }; | 238 | }; |
238 | 239 | ||
diff --git a/drivers/media/radio/radio-maestro.c b/drivers/media/radio/radio-maestro.c index e5e2021a7312..c30effdf711f 100644 --- a/drivers/media/radio/radio-maestro.c +++ b/drivers/media/radio/radio-maestro.c | |||
@@ -72,6 +72,7 @@ static struct file_operations maestro_fops = { | |||
72 | .open = video_exclusive_open, | 72 | .open = video_exclusive_open, |
73 | .release = video_exclusive_release, | 73 | .release = video_exclusive_release, |
74 | .ioctl = radio_ioctl, | 74 | .ioctl = radio_ioctl, |
75 | .compat_ioctl = v4l_compat_ioctl32, | ||
75 | .llseek = no_llseek, | 76 | .llseek = no_llseek, |
76 | }; | 77 | }; |
77 | 78 | ||
diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c index 02d39a50d5ed..30869308332a 100644 --- a/drivers/media/radio/radio-maxiradio.c +++ b/drivers/media/radio/radio-maxiradio.c | |||
@@ -80,6 +80,7 @@ static struct file_operations maxiradio_fops = { | |||
80 | .open = video_exclusive_open, | 80 | .open = video_exclusive_open, |
81 | .release = video_exclusive_release, | 81 | .release = video_exclusive_release, |
82 | .ioctl = radio_ioctl, | 82 | .ioctl = radio_ioctl, |
83 | .compat_ioctl = v4l_compat_ioctl32, | ||
83 | .llseek = no_llseek, | 84 | .llseek = no_llseek, |
84 | }; | 85 | }; |
85 | static struct video_device maxiradio_radio = | 86 | static struct video_device maxiradio_radio = |
diff --git a/drivers/media/radio/radio-rtrack2.c b/drivers/media/radio/radio-rtrack2.c index b2256d675b44..28a47c9e7a81 100644 --- a/drivers/media/radio/radio-rtrack2.c +++ b/drivers/media/radio/radio-rtrack2.c | |||
@@ -199,6 +199,7 @@ static struct file_operations rtrack2_fops = { | |||
199 | .open = video_exclusive_open, | 199 | .open = video_exclusive_open, |
200 | .release = video_exclusive_release, | 200 | .release = video_exclusive_release, |
201 | .ioctl = rt_ioctl, | 201 | .ioctl = rt_ioctl, |
202 | .compat_ioctl = v4l_compat_ioctl32, | ||
202 | .llseek = no_llseek, | 203 | .llseek = no_llseek, |
203 | }; | 204 | }; |
204 | 205 | ||
diff --git a/drivers/media/radio/radio-sf16fmi.c b/drivers/media/radio/radio-sf16fmi.c index 6f03ce4dd7b0..0229f792a059 100644 --- a/drivers/media/radio/radio-sf16fmi.c +++ b/drivers/media/radio/radio-sf16fmi.c | |||
@@ -225,6 +225,7 @@ static struct file_operations fmi_fops = { | |||
225 | .open = video_exclusive_open, | 225 | .open = video_exclusive_open, |
226 | .release = video_exclusive_release, | 226 | .release = video_exclusive_release, |
227 | .ioctl = fmi_ioctl, | 227 | .ioctl = fmi_ioctl, |
228 | .compat_ioctl = v4l_compat_ioctl32, | ||
228 | .llseek = no_llseek, | 229 | .llseek = no_llseek, |
229 | }; | 230 | }; |
230 | 231 | ||
diff --git a/drivers/media/radio/radio-sf16fmr2.c b/drivers/media/radio/radio-sf16fmr2.c index 71971e9bb342..26632cead09a 100644 --- a/drivers/media/radio/radio-sf16fmr2.c +++ b/drivers/media/radio/radio-sf16fmr2.c | |||
@@ -356,6 +356,7 @@ static struct file_operations fmr2_fops = { | |||
356 | .open = video_exclusive_open, | 356 | .open = video_exclusive_open, |
357 | .release = video_exclusive_release, | 357 | .release = video_exclusive_release, |
358 | .ioctl = fmr2_ioctl, | 358 | .ioctl = fmr2_ioctl, |
359 | .compat_ioctl = v4l_compat_ioctl32, | ||
359 | .llseek = no_llseek, | 360 | .llseek = no_llseek, |
360 | }; | 361 | }; |
361 | 362 | ||
diff --git a/drivers/media/radio/radio-terratec.c b/drivers/media/radio/radio-terratec.c index b03573c6840e..fcfde2e4f195 100644 --- a/drivers/media/radio/radio-terratec.c +++ b/drivers/media/radio/radio-terratec.c | |||
@@ -276,6 +276,7 @@ static struct file_operations terratec_fops = { | |||
276 | .open = video_exclusive_open, | 276 | .open = video_exclusive_open, |
277 | .release = video_exclusive_release, | 277 | .release = video_exclusive_release, |
278 | .ioctl = tt_ioctl, | 278 | .ioctl = tt_ioctl, |
279 | .compat_ioctl = v4l_compat_ioctl32, | ||
279 | .llseek = no_llseek, | 280 | .llseek = no_llseek, |
280 | }; | 281 | }; |
281 | 282 | ||
diff --git a/drivers/media/radio/radio-trust.c b/drivers/media/radio/radio-trust.c index b300bedf7c74..5a099a50d4d0 100644 --- a/drivers/media/radio/radio-trust.c +++ b/drivers/media/radio/radio-trust.c | |||
@@ -255,6 +255,7 @@ static struct file_operations trust_fops = { | |||
255 | .open = video_exclusive_open, | 255 | .open = video_exclusive_open, |
256 | .release = video_exclusive_release, | 256 | .release = video_exclusive_release, |
257 | .ioctl = tr_ioctl, | 257 | .ioctl = tr_ioctl, |
258 | .compat_ioctl = v4l_compat_ioctl32, | ||
258 | .llseek = no_llseek, | 259 | .llseek = no_llseek, |
259 | }; | 260 | }; |
260 | 261 | ||
diff --git a/drivers/media/radio/radio-typhoon.c b/drivers/media/radio/radio-typhoon.c index f304f3c14763..8ac9a8ef9094 100644 --- a/drivers/media/radio/radio-typhoon.c +++ b/drivers/media/radio/radio-typhoon.c | |||
@@ -261,6 +261,7 @@ static struct file_operations typhoon_fops = { | |||
261 | .open = video_exclusive_open, | 261 | .open = video_exclusive_open, |
262 | .release = video_exclusive_release, | 262 | .release = video_exclusive_release, |
263 | .ioctl = typhoon_ioctl, | 263 | .ioctl = typhoon_ioctl, |
264 | .compat_ioctl = v4l_compat_ioctl32, | ||
264 | .llseek = no_llseek, | 265 | .llseek = no_llseek, |
265 | }; | 266 | }; |
266 | 267 | ||
diff --git a/drivers/media/radio/radio-zoltrix.c b/drivers/media/radio/radio-zoltrix.c index 4c6d6fb49034..d590e80c922e 100644 --- a/drivers/media/radio/radio-zoltrix.c +++ b/drivers/media/radio/radio-zoltrix.c | |||
@@ -313,6 +313,7 @@ static struct file_operations zoltrix_fops = | |||
313 | .open = video_exclusive_open, | 313 | .open = video_exclusive_open, |
314 | .release = video_exclusive_release, | 314 | .release = video_exclusive_release, |
315 | .ioctl = zol_ioctl, | 315 | .ioctl = zol_ioctl, |
316 | .compat_ioctl = v4l_compat_ioctl32, | ||
316 | .llseek = no_llseek, | 317 | .llseek = no_llseek, |
317 | }; | 318 | }; |
318 | 319 | ||