aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-12-04 01:09:39 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-12-04 01:09:39 +0000
commitd6e3259f8bd0daadb8d6a01017cfab00cd73f17b (patch)
tree06ad398d1edd4b6f9c4173395627443024212823 /LUFA/Drivers
parent2919aeeaaba0d1d54e03f9132269c5277d414543 (diff)
downloadlufa-d6e3259f8bd0daadb8d6a01017cfab00cd73f17b.tar.gz
lufa-d6e3259f8bd0daadb8d6a01017cfab00cd73f17b.tar.bz2
lufa-d6e3259f8bd0daadb8d6a01017cfab00cd73f17b.zip
Fix incorrect const'ness of the ReportItem parameter in USB_SetHIDReportItemInfo().
Diffstat (limited to 'LUFA/Drivers')
-rw-r--r--LUFA/Drivers/USB/Class/Host/HIDParser.c2
-rw-r--r--LUFA/Drivers/USB/Class/Host/HIDParser.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/Class/Host/HIDParser.c b/LUFA/Drivers/USB/Class/Host/HIDParser.c
index 71598b036..3c39e9685 100644
--- a/LUFA/Drivers/USB/Class/Host/HIDParser.c
+++ b/LUFA/Drivers/USB/Class/Host/HIDParser.c
@@ -312,7 +312,7 @@ bool USB_GetHIDReportItemInfo(const uint8_t* ReportData, HID_ReportItem_t* const
return true;
}
-void USB_SetHIDReportItemInfo(uint8_t* ReportData, const HID_ReportItem_t* ReportItem)
+void USB_SetHIDReportItemInfo(uint8_t* ReportData, HID_ReportItem_t* const ReportItem)
{
uint16_t DataBitsRem = ReportItem->Attributes.BitSize;
uint16_t CurrentBit = ReportItem->BitOffset;
diff --git a/LUFA/Drivers/USB/Class/Host/HIDParser.h b/LUFA/Drivers/USB/Class/Host/HIDParser.h
index e1f4cb3c2..16cfc2317 100644
--- a/LUFA/Drivers/USB/Class/Host/HIDParser.h
+++ b/LUFA/Drivers/USB/Class/Host/HIDParser.h
@@ -278,7 +278,7 @@
* \param[out] ReportData Buffer holding the current OUT or FEATURE report data
* \param[in] ReportItem Pointer to the report item of interest in a \ref HID_ReportInfo_t ReportItem array
*/
- void USB_SetHIDReportItemInfo(uint8_t* ReportData, const HID_ReportItem_t* ReportItem)
+ void USB_SetHIDReportItemInfo(uint8_t* ReportData, HID_ReportItem_t* const ReportItem)
ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(2);
/** Retrieves the size of a given HID report in bytes from it's Report ID.