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:
parent
aad9ab4b11
commit
4d6d04d3ea
3 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue