Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e3cbe81 authored by Harvey Harrison's avatar Harvey Harrison Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (7746): pvrusb2: make signed one-bit bitfields unsigned



Single-bit signed bitfields can only take 0/-1 rather than 0/1 as the
drivers seems to assume...add unsigned.
Noticed by sparse:
drivers/media/video/pvrusb2/pvrusb2-devattr.h:107:34: error: dubious one-bit signed bitfield
drivers/media/video/pvrusb2/pvrusb2-devattr.h:114:37: error: dubious one-bit signed bitfield
drivers/media/video/pvrusb2/pvrusb2-devattr.h:117:30: error: dubious one-bit signed bitfield
drivers/media/video/pvrusb2/pvrusb2-devattr.h:120:23: error: dubious one-bit signed bitfield
drivers/media/video/pvrusb2/pvrusb2-devattr.h:124:24: error: dubious one-bit signed bitfield
drivers/media/video/pvrusb2/pvrusb2-devattr.h:128:23: error: dubious one-bit signed bitfield
drivers/media/video/pvrusb2/pvrusb2-devattr.h:138:36: error: dubious one-bit signed bitfield
drivers/media/video/pvrusb2/pvrusb2-devattr.h:143:24: error: dubious one-bit signed bitfield
drivers/media/video/pvrusb2/pvrusb2-devattr.h:144:28: error: dubious one-bit signed bitfield
drivers/media/video/pvrusb2/pvrusb2-devattr.h:145:26: error: dubious one-bit signed bitfield
drivers/media/video/pvrusb2/pvrusb2-devattr.h:146:23: error: dubious one-bit signed bitfield

Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: default avatarMike Isely <isely@pobox.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 4aef8fdd
Loading
Loading
Loading
Loading
+11 −11
Original line number Original line Diff line number Diff line
@@ -104,28 +104,28 @@ struct pvr2_device_desc {
	unsigned char digital_control_scheme;
	unsigned char digital_control_scheme;


	/* If set, we don't bother trying to load cx23416 firmware. */
	/* If set, we don't bother trying to load cx23416 firmware. */
	int flag_skip_cx23416_firmware:1;
	unsigned int flag_skip_cx23416_firmware:1;


	/* If set, the encoder must be healthy in order for digital mode to
	/* If set, the encoder must be healthy in order for digital mode to
	   work (otherwise we assume that digital streaming will work even
	   work (otherwise we assume that digital streaming will work even
	   if we fail to locate firmware for the encoder).  If the device
	   if we fail to locate firmware for the encoder).  If the device
	   doesn't support digital streaming then this flag has no
	   doesn't support digital streaming then this flag has no
	   effect. */
	   effect. */
	int flag_digital_requires_cx23416:1;
	unsigned int flag_digital_requires_cx23416:1;


	/* Device has a hauppauge eeprom which we can interrogate. */
	/* Device has a hauppauge eeprom which we can interrogate. */
	int flag_has_hauppauge_rom:1;
	unsigned int flag_has_hauppauge_rom:1;


	/* Device does not require a powerup command to be issued. */
	/* Device does not require a powerup command to be issued. */
	int flag_no_powerup:1;
	unsigned int flag_no_powerup:1;


	/* Device has a cx25840 - this enables special additional logic to
	/* Device has a cx25840 - this enables special additional logic to
	   handle it. */
	   handle it. */
	int flag_has_cx25840:1;
	unsigned int flag_has_cx25840:1;


	/* Device has a wm8775 - this enables special additional logic to
	/* Device has a wm8775 - this enables special additional logic to
	   ensure that it is found. */
	   ensure that it is found. */
	int flag_has_wm8775:1;
	unsigned int flag_has_wm8775:1;


	/* Device has IR hardware that can be faked into looking like a
	/* Device has IR hardware that can be faked into looking like a
	   normal Hauppauge i2c IR receiver.  This is currently very
	   normal Hauppauge i2c IR receiver.  This is currently very
@@ -135,15 +135,15 @@ struct pvr2_device_desc {
	   to virtualize the presence of the non-existant IR receiver chip and
	   to virtualize the presence of the non-existant IR receiver chip and
	   implement the virtual receiver in terms of appropriate FX2
	   implement the virtual receiver in terms of appropriate FX2
	   commands. */
	   commands. */
	int flag_has_hauppauge_custom_ir:1;
	unsigned int flag_has_hauppauge_custom_ir:1;


	/* These bits define which kinds of sources the device can handle.
	/* These bits define which kinds of sources the device can handle.
	   Note: Digital tuner presence is inferred by the
	   Note: Digital tuner presence is inferred by the
	   digital_control_scheme enumeration. */
	   digital_control_scheme enumeration. */
	int flag_has_fmradio:1;       /* Has FM radio receiver */
	unsigned int flag_has_fmradio:1;       /* Has FM radio receiver */
	int flag_has_analogtuner:1;   /* Has analog tuner */
	unsigned int flag_has_analogtuner:1;   /* Has analog tuner */
	int flag_has_composite:1;     /* Has composite input */
	unsigned int flag_has_composite:1;     /* Has composite input */
	int flag_has_svideo:1;        /* Has s-video input */
	unsigned int flag_has_svideo:1;        /* Has s-video input */
};
};


extern struct usb_device_id pvr2_device_table[];
extern struct usb_device_id pvr2_device_table[];