Skip to content

Commit d0dd962

Browse files
committed
media: dvb: get rid of VIDEO_SET_SPU_PALETTE
No upstream drivers use it. It doesn't make any sense to have a compat32 code for something that nobody uses upstream. Reported-by: Alexander Viro <viro@zeniv.linux.org.uk> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
1 parent e5225c8 commit d0dd962

6 files changed

Lines changed: 0 additions & 139 deletions

File tree

‎Documentation/media/uapi/dvb/video-set-spu-palette.rst‎

Lines changed: 0 additions & 82 deletions
This file was deleted.

‎Documentation/media/uapi/dvb/video_function_calls.rst‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,5 @@ Video Function Calls
3838
video-set-system
3939
video-set-highlight
4040
video-set-spu
41-
video-set-spu-palette
4241
video-get-navi
4342
video-set-attributes

‎Documentation/media/uapi/dvb/video_types.rst‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -320,24 +320,6 @@ to the following format:
320320
} video_spu_t;
321321
322322
323-
.. c:type:: video_spu_palette
324-
325-
struct video_spu_palette
326-
========================
327-
328-
The following structure is used to set the SPU palette by calling
329-
VIDEO_SPU_PALETTE:
330-
331-
332-
.. code-block:: c
333-
334-
typedef
335-
struct video_spu_palette {
336-
int length;
337-
uint8_t *palette;
338-
} video_spu_palette_t;
339-
340-
341323
.. c:type:: video_navi_pack
342324
343325
struct video_navi_pack

‎Documentation/media/video.h.rst.exceptions‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,4 @@ replace typedef video_stream_source_t :c:type:`video_stream_source`
3636
replace typedef video_play_state_t :c:type:`video_play_state`
3737
replace typedef video_highlight_t :c:type:`video_highlight`
3838
replace typedef video_spu_t :c:type:`video_spu`
39-
replace typedef video_spu_palette_t :c:type:`video_spu_palette`
4039
replace typedef video_navi_pack_t :c:type:`video_navi_pack`

‎fs/compat_ioctl.c‎

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -198,34 +198,6 @@ static int do_video_stillpicture(struct file *file,
198198
return err;
199199
}
200200

201-
struct compat_video_spu_palette {
202-
int length;
203-
compat_uptr_t palette;
204-
};
205-
206-
static int do_video_set_spu_palette(struct file *file,
207-
unsigned int cmd, struct compat_video_spu_palette __user *up)
208-
{
209-
struct video_spu_palette __user *up_native;
210-
compat_uptr_t palp;
211-
int length, err;
212-
213-
err = get_user(palp, &up->palette);
214-
err |= get_user(length, &up->length);
215-
if (err)
216-
return -EFAULT;
217-
218-
up_native = compat_alloc_user_space(sizeof(struct video_spu_palette));
219-
err = put_user(compat_ptr(palp), &up_native->palette);
220-
err |= put_user(length, &up_native->length);
221-
if (err)
222-
return -EFAULT;
223-
224-
err = do_ioctl(file, cmd, (unsigned long) up_native);
225-
226-
return err;
227-
}
228-
229201
#ifdef CONFIG_BLOCK
230202
typedef struct sg_io_hdr32 {
231203
compat_int_t interface_id; /* [i] 'S' for SCSI generic (required) */
@@ -1347,8 +1319,6 @@ static long do_ioctl_trans(unsigned int cmd,
13471319
return do_video_get_event(file, cmd, argp);
13481320
case VIDEO_STILLPICTURE:
13491321
return do_video_stillpicture(file, cmd, argp);
1350-
case VIDEO_SET_SPU_PALETTE:
1351-
return do_video_set_spu_palette(file, cmd, argp);
13521322
}
13531323

13541324
/*

‎include/uapi/linux/dvb/video.h‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,6 @@ typedef struct video_spu {
186186
} video_spu_t;
187187

188188

189-
typedef struct video_spu_palette { /* SPU Palette information */
190-
int length;
191-
__u8 __user *palette;
192-
} video_spu_palette_t;
193-
194-
195189
typedef struct video_navi_pack {
196190
int length; /* 0 ... 1024 */
197191
__u8 data[1024];
@@ -248,7 +242,6 @@ typedef __u16 video_attributes_t;
248242
#define VIDEO_SET_SYSTEM _IO('o', 38)
249243
#define VIDEO_SET_HIGHLIGHT _IOW('o', 39, video_highlight_t)
250244
#define VIDEO_SET_SPU _IOW('o', 50, video_spu_t)
251-
#define VIDEO_SET_SPU_PALETTE _IOW('o', 51, video_spu_palette_t)
252245
#define VIDEO_GET_NAVI _IOR('o', 52, video_navi_pack_t)
253246
#define VIDEO_SET_ATTRIBUTES _IO('o', 53)
254247
#define VIDEO_GET_SIZE _IOR('o', 55, video_size_t)

0 commit comments

Comments
 (0)