diff options
author | Emil Goode <emilgoode@gmail.com> | 2012-08-05 09:34:26 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-09-13 17:42:15 -0300 |
commit | 50c457a950ac06b4c461ed36fdb4a84c0d27a82b (patch) | |
tree | d3d4dfc77e5fd874df91dfbf6df94798d8cb2ab9 /drivers | |
parent | 4a7ec2db262628f8b13af76b09bb147943264529 (diff) | |
download | linux-stable-50c457a950ac06b4c461ed36fdb4a84c0d27a82b.tar.gz linux-stable-50c457a950ac06b4c461ed36fdb4a84c0d27a82b.tar.bz2 linux-stable-50c457a950ac06b4c461ed36fdb4a84c0d27a82b.zip |
[media] gspca: dubious one-bit signed bitfield
This patch changes some signed integers to unsigned because
they are not intended for negative values and sparse
is making noise about it.
Sparse gives eight of these errors:
drivers/media/usb/gspca/ov519.c:144:29: error: dubious one-bit signed bitfield
Signed-off-by: Emil Goode <emilgoode@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/usb/gspca/ov519.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/media/usb/gspca/ov519.c b/drivers/media/usb/gspca/ov519.c index bfc7cefa59f8..c1a21bfb4be7 100644 --- a/drivers/media/usb/gspca/ov519.c +++ b/drivers/media/usb/gspca/ov519.c @@ -141,14 +141,14 @@ enum sensors { /* table of the disabled controls */ struct ctrl_valid { - int has_brightness:1; - int has_contrast:1; - int has_exposure:1; - int has_autogain:1; - int has_sat:1; - int has_hvflip:1; - int has_autobright:1; - int has_freq:1; + unsigned int has_brightness:1; + unsigned int has_contrast:1; + unsigned int has_exposure:1; + unsigned int has_autogain:1; + unsigned int has_sat:1; + unsigned int has_hvflip:1; + unsigned int has_autobright:1; + unsigned int has_freq:1; }; static const struct ctrl_valid valid_controls[] = { |