diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-08-24 13:02:38 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-08-24 13:02:38 +0000 |
| commit | 815b999a1b78e24b2b75aafa49eacdf600c3a659 (patch) | |
| tree | 3060a52e5f3e3a3486e7d2bd272cfc8e7ab58190 /Demos/Device/ClassDriver/KeyboardMouse/Descriptors.h | |
| parent | 47fc1d3ce429d1270091ff19431648c151e69748 (diff) | |
Changed the signature of the CALLBACK_USB_GetDescriptor() callback function so that the descriptor pointer is const, to remove the need for extra casting inside the callback (thanks to Jonathan Kollasch).
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1452 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Demos/Device/ClassDriver/KeyboardMouse/Descriptors.h')
| -rw-r--r-- | Demos/Device/ClassDriver/KeyboardMouse/Descriptors.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Demos/Device/ClassDriver/KeyboardMouse/Descriptors.h b/Demos/Device/ClassDriver/KeyboardMouse/Descriptors.h index b4bf3d27..e4908f94 100644 --- a/Demos/Device/ClassDriver/KeyboardMouse/Descriptors.h +++ b/Demos/Device/ClassDriver/KeyboardMouse/Descriptors.h @@ -71,6 +71,7 @@ /* Function Prototypes: */ uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, const uint8_t wIndex, - void** const DescriptorAddress) ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(3); + const void** const DescriptorAddress) + ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(3); #endif |
