File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -233,6 +233,14 @@ static int if_ioctl(struct tty_struct *tty,
233
233
return retval ;
234
234
}
235
235
236
+ #ifdef CONFIG_COMPAT
237
+ static long if_compat_ioctl (struct tty_struct * tty ,
238
+ unsigned int cmd , unsigned long arg )
239
+ {
240
+ return if_ioctl (tty , cmd , (unsigned long )compat_ptr (arg ));
241
+ }
242
+ #endif
243
+
236
244
static int if_tiocmget (struct tty_struct * tty )
237
245
{
238
246
struct cardstate * cs = tty -> driver_data ;
@@ -472,6 +480,9 @@ static const struct tty_operations if_ops = {
472
480
.open = if_open ,
473
481
.close = if_close ,
474
482
.ioctl = if_ioctl ,
483
+ #ifdef CONFIG_COMPAT
484
+ .compat_ioctl = if_compat_ioctl ,
485
+ #endif
475
486
.write = if_write ,
476
487
.write_room = if_write_room ,
477
488
.chars_in_buffer = if_chars_in_buffer ,
Original file line number Diff line number Diff line change @@ -1021,11 +1021,6 @@ COMPATIBLE_IOCTL(CAPI_SET_FLAGS)
1021
1021
COMPATIBLE_IOCTL (CAPI_CLR_FLAGS )
1022
1022
COMPATIBLE_IOCTL (CAPI_NCCI_OPENCOUNT )
1023
1023
COMPATIBLE_IOCTL (CAPI_NCCI_GETUNIT )
1024
- /* Siemens Gigaset */
1025
- COMPATIBLE_IOCTL (GIGASET_REDIR )
1026
- COMPATIBLE_IOCTL (GIGASET_CONFIG )
1027
- COMPATIBLE_IOCTL (GIGASET_BRKCHARS )
1028
- COMPATIBLE_IOCTL (GIGASET_VERSION )
1029
1024
/* Misc. */
1030
1025
COMPATIBLE_IOCTL (0x41545900 ) /* ATYIO_CLKR */
1031
1026
COMPATIBLE_IOCTL (0x41545901 ) /* ATYIO_CLKW */
You can’t perform that action at this time.
0 commit comments