Mark keyboard reports passed to process_usb_keyboard_report() as const.

This commit is contained in:
Martin Whitaker 2022-05-01 22:43:04 +01:00
parent 260c113bb2
commit eaf29f1e39
2 changed files with 2 additions and 2 deletions

View File

@ -679,7 +679,7 @@ bool find_attached_usb_keyboards(const usb_hcd_t *hcd, const usb_hub_t *hub, int
return keyboard_found;
}
bool process_usb_keyboard_report(const usb_hcd_t *hcd, hid_kbd_rpt_t *report, hid_kbd_rpt_t *prev_report)
bool process_usb_keyboard_report(const usb_hcd_t *hcd, const hid_kbd_rpt_t *report, const hid_kbd_rpt_t *prev_report)
{
hcd_workspace_t *ws = hcd->ws;

View File

@ -274,7 +274,7 @@ bool find_attached_usb_keyboards(const usb_hcd_t *hcd, const usb_hub_t *hub, int
*
* Used internally by the various HCI drivers.
*/
bool process_usb_keyboard_report(const usb_hcd_t *hcd, hid_kbd_rpt_t *report, hid_kbd_rpt_t *prev_report);
bool process_usb_keyboard_report(const usb_hcd_t *hcd, const hid_kbd_rpt_t *report, const hid_kbd_rpt_t *prev_report);
/**
* Scans the attached USB devices and initialises all HID keyboard devices