mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-02 04:24:05 +00:00
Input: evdev - allow querying SW state from compat ioctl
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
e0be618d1e
commit
7972720aaa
1 changed files with 3 additions and 0 deletions
|
@ -580,6 +580,9 @@ static long evdev_ioctl_compat(struct file *file, unsigned int cmd, unsigned lon
|
||||||
if (_IOC_NR(cmd) == _IOC_NR(EVIOCGSND(0)))
|
if (_IOC_NR(cmd) == _IOC_NR(EVIOCGSND(0)))
|
||||||
bit_to_user(dev->snd, SND_MAX);
|
bit_to_user(dev->snd, SND_MAX);
|
||||||
|
|
||||||
|
if (_IOC_NR(cmd) == _IOC_NR(EVIOCGSW(0)))
|
||||||
|
bit_to_user(dev->sw, SW_MAX);
|
||||||
|
|
||||||
if (_IOC_NR(cmd) == _IOC_NR(EVIOCGNAME(0))) {
|
if (_IOC_NR(cmd) == _IOC_NR(EVIOCGNAME(0))) {
|
||||||
int len;
|
int len;
|
||||||
if (!dev->name) return -ENOENT;
|
if (!dev->name) return -ENOENT;
|
||||||
|
|
Loading…
Add table
Reference in a new issue