HID: roccat: declare meaning of pack pragma usage in driver headers
authorStefan Achatz <erazor_de@users.sourceforge.net>
Fri, 26 Nov 2010 19:57:36 +0000 (19:57 +0000)
committerJiri Kosina <jkosina@suse.cz>
Sat, 8 Jan 2011 00:11:24 +0000 (01:11 +0100)
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>
drivers/hid/hid-roccat-kone.h
drivers/hid/hid-roccat-pyra.h

index 130d6566ea8269e1c51a0bd604fda7378e315474..11203a75b0f9983cd69df1e79e084c3070a65b3e 100644 (file)
@@ -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)
 
index 22f80a8f26f9e56ea314faa8379f4653fcb6aae6..ac5996e8817ceed8308b296e6e6477d68e2fb35b 100644 (file)
@@ -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)