Fix a bunch of -Wcast-qual warnings in sys/dev/usb/input/uhid.c, by
using __DECONST. No functional change. Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D1743
This commit is contained in:
parent
edebe56497
commit
620d4f3c0b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277974
@ -734,7 +734,7 @@ uhid_attach(device_t dev)
|
||||
if (uaa->info.idProduct == USB_PRODUCT_WACOM_GRAPHIRE) {
|
||||
|
||||
sc->sc_repdesc_size = sizeof(uhid_graphire_report_descr);
|
||||
sc->sc_repdesc_ptr = (void *)&uhid_graphire_report_descr;
|
||||
sc->sc_repdesc_ptr = __DECONST(void *, &uhid_graphire_report_descr);
|
||||
sc->sc_flags |= UHID_FLAG_STATIC_DESC;
|
||||
|
||||
} else if (uaa->info.idProduct == USB_PRODUCT_WACOM_GRAPHIRE3_4X5) {
|
||||
@ -755,7 +755,7 @@ uhid_attach(device_t dev)
|
||||
usbd_errstr(error));
|
||||
}
|
||||
sc->sc_repdesc_size = sizeof(uhid_graphire3_4x5_report_descr);
|
||||
sc->sc_repdesc_ptr = (void *)&uhid_graphire3_4x5_report_descr;
|
||||
sc->sc_repdesc_ptr = __DECONST(void *, &uhid_graphire3_4x5_report_descr);
|
||||
sc->sc_flags |= UHID_FLAG_STATIC_DESC;
|
||||
}
|
||||
} else if ((uaa->info.bInterfaceClass == UICLASS_VENDOR) &&
|
||||
@ -775,7 +775,7 @@ uhid_attach(device_t dev)
|
||||
}
|
||||
/* the Xbox 360 gamepad has no report descriptor */
|
||||
sc->sc_repdesc_size = sizeof(uhid_xb360gp_report_descr);
|
||||
sc->sc_repdesc_ptr = (void *)&uhid_xb360gp_report_descr;
|
||||
sc->sc_repdesc_ptr = __DECONST(void *, &uhid_xb360gp_report_descr);
|
||||
sc->sc_flags |= UHID_FLAG_STATIC_DESC;
|
||||
}
|
||||
if (sc->sc_repdesc_ptr == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user