freebsd-nq/sys/dev/usb/serial
Dimitry Andric 02d4a225db With clang 3.9.0, compiling uplcom results in the following warnings:
sys/dev/usb/serial/uplcom.c:543:29: error: implicit conversion from 'int' to 'int8_t' (aka 'signed char') changes value from 192 to -64 [-Werror,-Wconstant-conversion]
        if (uplcom_pl2303_do(udev, UT_READ_VENDOR_DEVICE, UPLCOM_SET_REQUEST, 0x8484, 0, 1)
            ~~~~~~~~~~~~~~~~       ^~~~~~~~~~~~~~~~~~~~~
sys/dev/usb/usb.h:179:53: note: expanded from macro 'UT_READ_VENDOR_DEVICE'
#define UT_READ_VENDOR_DEVICE   (UT_READ  | UT_VENDOR | UT_DEVICE)
                                 ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~

This is because UT_READ is 0x80, so the int8_t argument is wrapped to a
negative value.  Fix this by using uint8_t instead.

Reviewed by:	imp, hselasky
MFC after:	3 days
Differential Revision: https://reviews.freebsd.org/D7776
2016-09-04 16:59:35 +00:00
..
u3g.c Annotate the usb-serial drivers which always return 0 for line status, 2016-07-27 00:08:01 +00:00
uark.c Annotate the usb-serial drivers which always return 0 for line status, 2016-07-27 00:08:01 +00:00
ubsa.c Translate modem status reg bits from ns16550 to SER_* values used by the 2016-07-27 00:03:18 +00:00
ubser.c
uchcom.c Annotate the usb-serial drivers which always return 0 for line status, 2016-07-27 00:08:01 +00:00
ucycom.c Create a USB_PNP_INFO and use it to export the existing PNP 2015-12-11 05:28:00 +00:00
ufoma.c Annotate the usb-serial drivers which always return 0 for line status, 2016-07-27 00:08:01 +00:00
uftdi_reg.h
uftdi.c Add more DPRINTF() to the ftdi driver. Now everything that can change the 2016-04-05 13:47:06 +00:00
ugensa.c Create a USB_PNP_INFO and use it to export the existing PNP 2015-12-11 05:28:00 +00:00
uipaq.c Create a USB_PNP_INFO and use it to export the existing PNP 2015-12-11 05:28:00 +00:00
ulpt.c dev/usb: minor spelling fixes in comments. 2016-05-02 17:44:03 +00:00
umcs.c Translate modem status reg bits from ns16550 to SER_* values used by the 2016-07-26 23:27:28 +00:00
umcs.h dev/usb: minor spelling fixes in comments. 2016-05-02 17:44:03 +00:00
umct.c Translate modem status reg bits from ns16550 to SER_* values used by the 2016-07-26 23:42:42 +00:00
umodem.c Annotate the usb-serial drivers which always return 0 for line status, 2016-07-27 00:08:01 +00:00
umoscom.c Actually return line status register values from umoscom_cfg_get_status(). 2016-07-26 22:26:49 +00:00
uplcom.c With clang 3.9.0, compiling uplcom results in the following warnings: 2016-09-04 16:59:35 +00:00
usb_serial.c Make PPS ASSERT/CLEAR events match the RS-232 signal levels as per RFC 2783. 2016-01-17 21:19:45 +00:00
usb_serial.h
uslcom.c Annotate the usb-serial drivers which always return 0 for line status, 2016-07-27 00:08:01 +00:00
uvisor.c dev/usb: minor spelling fixes in comments. 2016-05-02 17:44:03 +00:00
uvscom.c Create a USB_PNP_INFO and use it to export the existing PNP 2015-12-11 05:28:00 +00:00