浏览代码

staging: comedi: drivers: daqboard2000: make bool bit-field unsigned int bit-fields.

Checkpatch complains on bool bitfields to be an int or u8/u16/u32
bitfield.

Make bool bit-fields to be unsigned int bit-fields.

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Giulio Benetti 7 年之前
父节点
当前提交
6aa0209393
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/staging/comedi/drivers/daqboard2000.c

+ 1 - 1
drivers/staging/comedi/drivers/daqboard2000.c

@@ -240,7 +240,7 @@ enum db2k_boardid {
 
 
 struct db2k_boardtype {
 struct db2k_boardtype {
 	const char *name;
 	const char *name;
-	bool has_2_ao:1;	/* false: 4 AO chans; true: 2 AO chans */
+	unsigned int has_2_ao:1;/* false: 4 AO chans; true: 2 AO chans */
 };
 };
 
 
 static const struct db2k_boardtype db2k_boardtypes[] = {
 static const struct db2k_boardtype db2k_boardtypes[] = {