Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248644
b: refs/heads/master
c: 6da9e95
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Greg Kroah-Hartman committed Apr 19, 2011
1 parent d38c340 commit 33cf075
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 60680f97d7412b471d21ef42d4860657a0f9f2ed
refs/heads/master: 6da9e95f7381fa27bc9c66c9840b11adde778618
22 changes: 17 additions & 5 deletions trunk/drivers/tty/vt/vt_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -698,11 +698,23 @@ int vt_ioctl(struct tty_struct *tty,
break;

case KDGKBMODE:
uival = ((kbd->kbdmode == VC_RAW) ? K_RAW :
(kbd->kbdmode == VC_MEDIUMRAW) ? K_MEDIUMRAW :
(kbd->kbdmode == VC_UNICODE) ? K_UNICODE :
(kbd->kbdmode == VC_OFF) ? K_OFF :
K_XLATE);
switch (kbd->kbdmode) {
case VC_RAW:
uival = K_RAW;
break;
case VC_MEDIUMRAW:
uival = K_MEDIUMRAW;
break;
case VC_UNICODE:
uival = K_UNICODE;
break;
case VC_OFF:
uival = K_OFF;
break;
default:
uival = K_XLATE;
break;
}
goto setint;

/* this could be folded into KDSKBMODE, but for compatibility
Expand Down

0 comments on commit 33cf075

Please sign in to comment.