summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-roccat-kone.h
diff options
context:
space:
mode:
authorStefan Achatz <erazor_de@users.sourceforge.net>2010-11-26 20:57:36 +0100
committerJiri Kosina <jkosina@suse.cz>2011-01-08 01:11:24 +0100
commitbd3a2b96631dd86b06dca96aef00790084a11e15 (patch)
treec9bd056bfcf5d227ccb6c772f6cd7abc9d7b6a33 /drivers/hid/hid-roccat-kone.h
parentHID: roccat: use class for char device for sysfs attribute creation (diff)
downloadlinux-bd3a2b96631dd86b06dca96aef00790084a11e15.tar.xz
linux-bd3a2b96631dd86b06dca96aef00790084a11e15.zip
HID: roccat: declare meaning of pack pragma usage in driver headers
Using pack pragma to prevent padding bytes in binary data structures used for hardware communication. Explanation of these pragmas was requested. Signed-off-by: Stefan Achatz <erazor_de@users.sourceforge.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-roccat-kone.h')
-rw-r--r--drivers/hid/hid-roccat-kone.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hid/hid-roccat-kone.h b/drivers/hid/hid-roccat-kone.h
index 130d6566ea82..11203a75b0f9 100644
--- a/drivers/hid/hid-roccat-kone.h
+++ b/drivers/hid/hid-roccat-kone.h
@@ -14,6 +14,9 @@
#include <linux/types.h>
+/*
+ * Binary data structures used for hardware communication must have no padding.
+ */
#pragma pack(push)
#pragma pack(1)