android_kernel_xiaomi_sm8350/drivers/usb/serial
Harvey Harrison b2bdd1f504 USB: cp2101.c fix sparse signedness mismatch warnings
The get/set 2101_config helpers take an unsigned int rather than an
int.  It is safe to change these in each case and may even produce
better code as it will be an unsigned divide rather than a signed
divide in places.  All other manipulation was setting/masking bits
which will not be affected by the sign change.

Fixes the following sparse warnings:
drivers/usb/serial/cp2101.c:378:44: warning: incorrect type in argument 3 (different signedness)
drivers/usb/serial/cp2101.c:378:44:    expected unsigned int *data
drivers/usb/serial/cp2101.c:378:44:    got int *<noident>
drivers/usb/serial/cp2101.c:388:40: warning: incorrect type in argument 3 (different signedness)
drivers/usb/serial/cp2101.c:388:40:    expected unsigned int *data
drivers/usb/serial/cp2101.c:388:40:    got int *<noident>
drivers/usb/serial/cp2101.c:413:42: warning: incorrect type in argument 3 (different signedness)
drivers/usb/serial/cp2101.c:413:42:    expected unsigned int *data
drivers/usb/serial/cp2101.c:413:42:    got int *<noident>
drivers/usb/serial/cp2101.c:421:42: warning: incorrect type in argument 3 (different signedness)
drivers/usb/serial/cp2101.c:421:42:    expected unsigned int *data
drivers/usb/serial/cp2101.c:421:42:    got int *<noident>
drivers/usb/serial/cp2101.c:444:42: warning: incorrect type in argument 3 (different signedness)
drivers/usb/serial/cp2101.c:444:42:    expected unsigned int *data
drivers/usb/serial/cp2101.c:444:42:    got int *<noident>
drivers/usb/serial/cp2101.c:451:42: warning: incorrect type in argument 3 (different signedness)
drivers/usb/serial/cp2101.c:451:42:    expected unsigned int *data
drivers/usb/serial/cp2101.c:451:42:    got int *<noident>
drivers/usb/serial/cp2101.c:458:42: warning: incorrect type in argument 3 (different signedness)
drivers/usb/serial/cp2101.c:458:42:    expected unsigned int *data
drivers/usb/serial/cp2101.c:458:42:    got int *<noident>
drivers/usb/serial/cp2101.c:471:42: warning: incorrect type in argument 3 (different signedness)
drivers/usb/serial/cp2101.c:471:42:    expected unsigned int *data
drivers/usb/serial/cp2101.c:471:42:    got int *<noident>
drivers/usb/serial/cp2101.c:481:42: warning: incorrect type in argument 3 (different signedness)
drivers/usb/serial/cp2101.c:481:42:    expected unsigned int *data
drivers/usb/serial/cp2101.c:481:42:    got int *<noident>
drivers/usb/serial/cp2101.c:561:41: warning: incorrect type in argument 3 (different signedness)
drivers/usb/serial/cp2101.c:561:41:    expected unsigned int *data
drivers/usb/serial/cp2101.c:561:41:    got int *<noident>
drivers/usb/serial/cp2101.c:591:45: warning: incorrect type in argument 3 (different signedness)
drivers/usb/serial/cp2101.c:591:45:    expected unsigned int *data
drivers/usb/serial/cp2101.c:591:45:    got int *<noident>
drivers/usb/serial/cp2101.c:597:41: warning: incorrect type in argument 3 (different signedness)
drivers/usb/serial/cp2101.c:597:41:    expected unsigned int *data
drivers/usb/serial/cp2101.c:597:41:    got int *<noident>
drivers/usb/serial/cp2101.c:608:45: warning: incorrect type in argument 3 (different signedness)
drivers/usb/serial/cp2101.c:608:45:    expected unsigned int *data
drivers/usb/serial/cp2101.c:608:45:    got int *<noident>
drivers/usb/serial/cp2101.c:614:41: warning: incorrect type in argument 3 (different signedness)
drivers/usb/serial/cp2101.c:614:41:    expected unsigned int *data
drivers/usb/serial/cp2101.c:614:41:    got int *<noident>
drivers/usb/serial/cp2101.c:623:45: warning: incorrect type in argument 3 (different signedness)
drivers/usb/serial/cp2101.c:623:45:    expected unsigned int *data
drivers/usb/serial/cp2101.c:623:45:    got int *<noident>
drivers/usb/serial/cp2101.c:680:50: warning: incorrect type in argument 3 (different signedness)
drivers/usb/serial/cp2101.c:680:50:    expected unsigned int *data
drivers/usb/serial/cp2101.c:680:50:    got int *<noident>
drivers/usb/serial/cp2101.c:690:43: warning: incorrect type in argument 3 (different signedness)
drivers/usb/serial/cp2101.c:690:43:    expected unsigned int *data
drivers/usb/serial/cp2101.c:690:43:    got int *<noident>
drivers/usb/serial/cp2101.c:715:41: warning: incorrect type in argument 3 (different signedness)
drivers/usb/serial/cp2101.c:715:41:    expected unsigned int *data
drivers/usb/serial/cp2101.c:715:41:    got int *<noident>

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-07-21 15:16:23 -07:00
..
aircable.c usb_serial: some coding style fixes 2008-05-02 10:25:58 -07:00
airprime.c usb_serial: some coding style fixes 2008-05-02 10:25:58 -07:00
ark3116.c usb_serial: some coding style fixes 2008-05-02 10:25:58 -07:00
belkin_sa.c USB: remove unnecessary type casting of urb->context 2008-04-24 21:16:55 -07:00
belkin_sa.h
bus.c
ch341.c USB: serial: ch341: New VID/PID for CH341 USB-serial 2008-05-20 14:14:15 -07:00
ChangeLog.history
console.c USB: replace remaining __FUNCTION__ occurrences 2008-04-24 21:16:55 -07:00
cp2101.c USB: cp2101.c fix sparse signedness mismatch warnings 2008-07-21 15:16:23 -07:00
cyberjack.c USB: remove unnecessary type casting of urb->context 2008-04-24 21:16:55 -07:00
cypress_m8.c drivers/usb annotations and fixes 2008-04-28 10:03:31 -07:00
cypress_m8.h
digi_acceleport.c USB: digi_accelport.c trivial sparse lock annotation 2008-07-21 15:16:22 -07:00
empeg.c USB: remove unnecessary type casting of urb->context 2008-04-24 21:16:55 -07:00
ezusb_convert.pl
ezusb.c USB: replace remaining __FUNCTION__ occurrences 2008-04-24 21:16:55 -07:00
ftdi_sio.c USB: New device ID for ftdi_sio driver 2008-07-03 18:20:37 -07:00
ftdi_sio.h USB: New device ID for ftdi_sio driver 2008-07-03 18:20:37 -07:00
funsoft.c USB: serial: remove unneeded number endpoints settings 2008-04-24 21:16:52 -07:00
garmin_gps.c USB: remove unnecessary type casting of urb->context 2008-04-24 21:16:55 -07:00
generic.c USB: remove unnecessary type casting of urb->context 2008-04-24 21:16:55 -07:00
hp4x.c USB: serial: remove unneeded number endpoints settings 2008-04-24 21:16:52 -07:00
io_16654.h
io_edgeport.c edgeport: use request_firmware() 2008-07-14 14:44:37 -07:00
io_edgeport.h
io_ionsp.h
io_tables.h USB: serial: remove unneeded number endpoints settings 2008-04-24 21:16:52 -07:00
io_ti.c USB: io_ti: FIrst cut at a big clean up 2008-07-21 15:15:53 -07:00
io_ti.h
io_usbvend.h
ipaq.c USB: adding comment for ipaq forcing number of ports 2008-07-03 18:20:38 -07:00
ipaq.h
ipw.c USB: replace remaining __FUNCTION__ occurrences 2008-04-24 21:16:55 -07:00
ir-usb.c USB: remove unnecessary type casting of urb->context 2008-04-24 21:16:55 -07:00
iuu_phoenix.c fix irq flags for iuu_phoenix.c 2008-05-08 10:46:55 -07:00
iuu_phoenix.h
Kconfig keyspan: use request_firmware() 2008-07-10 14:48:49 +01:00
keyspan_pda.c keyspan_pda: use request_firmware() 2008-07-10 14:49:09 +01:00
keyspan_usa26msg.h
keyspan_usa28msg.h
keyspan_usa49msg.h
keyspan_usa67msg.h
keyspan_usa90msg.h
keyspan.c keyspan: use request_firmware() 2008-07-10 14:48:49 +01:00
keyspan.h keyspan: use request_firmware() 2008-07-10 14:48:49 +01:00
kl5kusb105.c USB: use get_unaligned_* helpers for kl5kusb105 driver 2008-07-21 15:15:47 -07:00
kl5kusb105.h
kobil_sct.c USB: replace remaining __FUNCTION__ occurrences 2008-04-24 21:16:55 -07:00
kobil_sct.h
Makefile USB: add new moto_modem driver for some Morotola phones 2008-05-14 10:00:25 -07:00
Makefile-keyspan_pda_fw
mct_u232.c USB: remove unnecessary type casting of urb->context 2008-04-24 21:16:55 -07:00
mct_u232.h
mos7720.c usb serial: more fixes and groundwork for tty changes 2008-04-24 21:16:55 -07:00
mos7840.c USB: mos7840: test and propagate set_uart_reg return value 2008-05-02 10:25:53 -07:00
moto_modem.c USB: add new moto_modem driver for some Morotola phones 2008-05-14 10:00:25 -07:00
navman.c usb serial: more fixes and groundwork for tty changes 2008-04-24 21:16:55 -07:00
omninet.c USB: remove unnecessary type casting of urb->context 2008-04-24 21:16:55 -07:00
option.c USB: another option device id 2008-07-03 18:20:38 -07:00
oti6858.c drivers/usb annotations and fixes 2008-04-28 10:03:31 -07:00
oti6858.h
pl2303.c USB: add a pl2303 device id 2008-07-03 18:20:38 -07:00
pl2303.h USB: add a pl2303 device id 2008-07-03 18:20:38 -07:00
safe_serial.c USB: remove unnecessary type casting of urb->context 2008-04-24 21:16:55 -07:00
sierra.c USB: remove unnecessary type casting of urb->context 2008-04-24 21:16:55 -07:00
spcp8x5.c drivers/usb annotations and fixes 2008-04-28 10:03:31 -07:00
ti_usb_3410_5052.c ti_usb_3410_5052: use request_firmware() 2008-07-10 14:49:34 +01:00
ti_usb_3410_5052.h
usb_debug.c USB: serial: remove unneeded number endpoints settings 2008-04-24 21:16:52 -07:00
usb-serial.c USB: usb dev_set_name() instead of dev->bus_id 2008-07-21 15:15:47 -07:00
visor.c USB: remove unnecessary type casting of urb->context 2008-04-24 21:16:55 -07:00
visor.h
whiteheat.c whiteheat: use request_firmware() 2008-07-10 14:49:38 +01:00
whiteheat.h