hid: change the API table to const.

A minor change to put the API function table into flash.

Signed-off-by: Michael Hope <mlhx@google.com>
This commit is contained in:
Michael Hope 2018-03-12 21:34:16 +01:00 committed by Anas Nashif
commit 4d6d04d3ea
3 changed files with 6 additions and 4 deletions

View file

@ -120,7 +120,8 @@ struct hid_ops {
#define COLLECTION_APPLICATION 0x01
/* Register HID device */
void usb_hid_register_device(const u8_t *desc, size_t size, struct hid_ops *op);
void usb_hid_register_device(const u8_t *desc, size_t size,
const struct hid_ops *op);
/* Initialize USB HID */
int usb_hid_init(void);