From: Giulio Benetti Date: Tue, 12 Jun 2018 14:50:28 +0000 (+0200) Subject: staging: comedi: comedi_fops: make bool bit-field unsigned int bit-fields. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b3c16227013f7f24429487cb501390c0f44fba8f;p=openwrt%2Fstaging%2Fblogic.git staging: comedi: comedi_fops: 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c index c13772a0df58..1f3b1106f478 100644 --- a/drivers/staging/comedi/comedi_fops.c +++ b/drivers/staging/comedi/comedi_fops.c @@ -60,7 +60,7 @@ struct comedi_file { struct comedi_subdevice *read_subdev; struct comedi_subdevice *write_subdev; unsigned int last_detach_count; - bool last_attached:1; + unsigned int last_attached:1; }; #define COMEDI_NUM_MINORS 0x100