Skip to content

Commit 969ec01

Browse files
author
Al Viro
committed
gigaset: add ->compat_ioctl()
... and get rid of COMPAT_IOCTL() for its private ioctls Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 9d1807d commit 969ec01

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

drivers/isdn/gigaset/interface.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,14 @@ static int if_ioctl(struct tty_struct *tty,
233233
return retval;
234234
}
235235

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+
236244
static int if_tiocmget(struct tty_struct *tty)
237245
{
238246
struct cardstate *cs = tty->driver_data;
@@ -472,6 +480,9 @@ static const struct tty_operations if_ops = {
472480
.open = if_open,
473481
.close = if_close,
474482
.ioctl = if_ioctl,
483+
#ifdef CONFIG_COMPAT
484+
.compat_ioctl = if_compat_ioctl,
485+
#endif
475486
.write = if_write,
476487
.write_room = if_write_room,
477488
.chars_in_buffer = if_chars_in_buffer,

fs/compat_ioctl.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,11 +1021,6 @@ COMPATIBLE_IOCTL(CAPI_SET_FLAGS)
10211021
COMPATIBLE_IOCTL(CAPI_CLR_FLAGS)
10221022
COMPATIBLE_IOCTL(CAPI_NCCI_OPENCOUNT)
10231023
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)
10291024
/* Misc. */
10301025
COMPATIBLE_IOCTL(0x41545900) /* ATYIO_CLKR */
10311026
COMPATIBLE_IOCTL(0x41545901) /* ATYIO_CLKW */

0 commit comments

Comments
 (0)