diff options
author | Jiri Kosina <jkosina@suse.cz> | 2013-03-27 12:29:18 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-03-27 12:29:18 -0400 |
commit | f37130533f68711fd6bae2c79950b8e72002bad6 (patch) | |
tree | f662002862fcd1ee00668a8ef437d3daa86066a3 /samples | |
parent | 4e55467efbc7e52e9e0d8c797c72e6b45c5ee270 (diff) |
HID: hidraw: warn if userspace headers are outdated
Put a warning into sample hidraw code in samples/hidraw/hid-example.c
in case the userspace headers are missing the necessary defines and
need to be updated.
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'samples')
-rw-r--r-- | samples/hidraw/hid-example.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/samples/hidraw/hid-example.c b/samples/hidraw/hid-example.c index 816e2dcda7ca..512a7e50bcae 100644 --- a/samples/hidraw/hid-example.c +++ b/samples/hidraw/hid-example.c | |||
@@ -17,10 +17,9 @@ | |||
17 | /* | 17 | /* |
18 | * Ugly hack to work around failing compilation on systems that don't | 18 | * Ugly hack to work around failing compilation on systems that don't |
19 | * yet populate new version of hidraw.h to userspace. | 19 | * yet populate new version of hidraw.h to userspace. |
20 | * | ||
21 | * If you need this, please have your distro update the kernel headers. | ||
22 | */ | 20 | */ |
23 | #ifndef HIDIOCSFEATURE | 21 | #ifndef HIDIOCSFEATURE |
22 | #warning Please have your distro update the userspace kernel headers | ||
24 | #define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len) | 23 | #define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len) |
25 | #define HIDIOCGFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len) | 24 | #define HIDIOCGFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len) |
26 | #endif | 25 | #endif |