diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-07-13 10:01:13 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-07-13 10:01:13 +0000 |
commit | 03130342451003093e654edc5b031718d544e9ba (patch) | |
tree | cffce32c4ada3ec192a8fdcb44b47b2f239e1701 /LUFA/Drivers/USB/Class/Host/RNDIS.c | |
parent | 3a3a4e2abf7ac55dcc438ad95e7c11f9566b825f (diff) | |
download | lufa-03130342451003093e654edc5b031718d544e9ba.tar.gz lufa-03130342451003093e654edc5b031718d544e9ba.tar.bz2 lufa-03130342451003093e654edc5b031718d544e9ba.zip |
Added const attributes to some of the class driver function parameters that were missing it.
Diffstat (limited to 'LUFA/Drivers/USB/Class/Host/RNDIS.c')
-rw-r--r-- | LUFA/Drivers/USB/Class/Host/RNDIS.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/LUFA/Drivers/USB/Class/Host/RNDIS.c b/LUFA/Drivers/USB/Class/Host/RNDIS.c index 980e32c18..bd6c863fa 100644 --- a/LUFA/Drivers/USB/Class/Host/RNDIS.c +++ b/LUFA/Drivers/USB/Class/Host/RNDIS.c @@ -195,7 +195,7 @@ static uint8_t DCOMP_RNDIS_Host_NextRNDISInterfaceEndpoint(void* const CurrentDe } static uint8_t RNDIS_SendEncapsulatedCommand(USB_ClassInfo_RNDIS_Host_t* const RNDISInterfaceInfo, - void* Buffer, uint16_t Length) + void* Buffer, const uint16_t Length) { USB_ControlRequest = (USB_Request_Header_t) { @@ -211,7 +211,7 @@ static uint8_t RNDIS_SendEncapsulatedCommand(USB_ClassInfo_RNDIS_Host_t* const R } static uint8_t RNDIS_GetEncapsulatedResponse(USB_ClassInfo_RNDIS_Host_t* const RNDISInterfaceInfo, - void* Buffer, uint16_t Length) + void* Buffer, const uint16_t Length) { USB_ControlRequest = (USB_Request_Header_t) { @@ -287,7 +287,8 @@ uint8_t RNDIS_Host_InitializeDevice(USB_ClassInfo_RNDIS_Host_t* const RNDISInter return HOST_SENDCONTROL_Successful; } -uint8_t RNDIS_Host_SetRNDISProperty(USB_ClassInfo_RNDIS_Host_t* const RNDISInterfaceInfo, uint32_t Oid, void* Buffer, uint16_t Length) +uint8_t RNDIS_Host_SetRNDISProperty(USB_ClassInfo_RNDIS_Host_t* const RNDISInterfaceInfo, const uint32_t Oid, + void* Buffer, const uint16_t Length) { uint8_t ErrorCode; @@ -328,7 +329,8 @@ uint8_t RNDIS_Host_SetRNDISProperty(USB_ClassInfo_RNDIS_Host_t* const RNDISInter return HOST_SENDCONTROL_Successful; } -uint8_t RNDIS_Host_QueryRNDISProperty(USB_ClassInfo_RNDIS_Host_t* const RNDISInterfaceInfo, uint32_t Oid, void* Buffer, uint16_t MaxLength) +uint8_t RNDIS_Host_QueryRNDISProperty(USB_ClassInfo_RNDIS_Host_t* const RNDISInterfaceInfo, const uint32_t Oid, + void* Buffer, const uint16_t MaxLength) { uint8_t ErrorCode; @@ -388,7 +390,7 @@ bool RNDIS_Host_IsPacketReceived(USB_ClassInfo_RNDIS_Host_t* const RNDISInterfac return PacketWaiting; } -uint8_t RNDIS_Host_ReadPacket(USB_ClassInfo_RNDIS_Host_t* const RNDISInterfaceInfo, void* Buffer, uint16_t* PacketLength) +uint8_t RNDIS_Host_ReadPacket(USB_ClassInfo_RNDIS_Host_t* const RNDISInterfaceInfo, void* Buffer, uint16_t* const PacketLength) { uint8_t ErrorCode; @@ -432,7 +434,7 @@ uint8_t RNDIS_Host_ReadPacket(USB_ClassInfo_RNDIS_Host_t* const RNDISInterfaceIn return PIPE_RWSTREAM_NoError; } -uint8_t RNDIS_Host_SendPacket(USB_ClassInfo_RNDIS_Host_t* const RNDISInterfaceInfo, void* Buffer, uint16_t PacketLength) +uint8_t RNDIS_Host_SendPacket(USB_ClassInfo_RNDIS_Host_t* const RNDISInterfaceInfo, void* Buffer, const uint16_t PacketLength) { uint8_t ErrorCode; |