提交 49259d34 编写于 作者: D David S. Miller

[IRDA] IRNET: Fix build when TCGETS2 is defined.

Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 3b582cc1
...@@ -731,15 +731,25 @@ dev_irnet_ioctl(struct inode * inode, ...@@ -731,15 +731,25 @@ dev_irnet_ioctl(struct inode * inode,
/* Get termios */ /* Get termios */
case TCGETS: case TCGETS:
DEBUG(FS_INFO, "Get termios.\n"); DEBUG(FS_INFO, "Get termios.\n");
#ifndef TCGETS2
if(kernel_termios_to_user_termios((struct termios __user *)argp, &ap->termios)) if(kernel_termios_to_user_termios((struct termios __user *)argp, &ap->termios))
break; break;
#else
if(kernel_termios_to_user_termios_1((struct termios __user *)argp, &ap->termios))
break;
#endif
err = 0; err = 0;
break; break;
/* Set termios */ /* Set termios */
case TCSETSF: case TCSETSF:
DEBUG(FS_INFO, "Set termios.\n"); DEBUG(FS_INFO, "Set termios.\n");
#ifndef TCGETS2
if(user_termios_to_kernel_termios(&ap->termios, (struct termios __user *)argp)) if(user_termios_to_kernel_termios(&ap->termios, (struct termios __user *)argp))
break; break;
#else
if(user_termios_to_kernel_termios_1(&ap->termios, (struct termios __user *)argp))
break;
#endif
err = 0; err = 0;
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册