浏览代码

Input: wacom - make one-bit signed bitfields unsigned

Otherwise it can only take the values 0/-1 which doesn't seem to
have been intended.

drivers/input/tablet/wacom.h:108:12: error: dubious one-bit signed bitfield

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Harvey Harrison 17 年之前
父节点
当前提交
c6a3ead2ab
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/input/tablet/wacom.h

+ 1 - 1
drivers/input/tablet/wacom.h

@@ -105,7 +105,7 @@ struct wacom {
 	struct urb *irq;
 	struct wacom_wac * wacom_wac;
 	struct mutex lock;
-	int open:1;
+	unsigned int open:1;
 	char phys[32];
 };