瀏覽代碼

[MFD] Fix "bious one-bit signed bitfield" errors

ucb1x00-ts declared a couple of one-bit 'int' bitfields.
Make them unsigned.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Russell King 20 年之前
父節點
當前提交
6b9ea4213e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/mfd/ucb1x00-ts.c

+ 2 - 2
drivers/mfd/ucb1x00-ts.c

@@ -48,8 +48,8 @@ struct ucb1x00_ts {
 	u16			x_res;
 	u16			y_res;
 
-	int			restart:1;
-	int			adcsync:1;
+	unsigned int		restart:1;
+	unsigned int		adcsync:1;
 };
 
 static int adcsync;