| 1 |  |  | /*************************************************************************** | 
    
    | 2 |  |  |  * Copyright (c) 2024 Microsoft Corporation | 
    
    | 3 |  |  |  * | 
    
    | 4 |  |  |  * This program and the accompanying materials are made available under the | 
    
    | 5 |  |  |  * terms of the MIT License which is available at | 
    
    | 6 |  |  |  * https://opensource.org/licenses/MIT. | 
    
    | 7 |  |  |  * | 
    
    | 8 |  |  |  * SPDX-License-Identifier: MIT | 
    
    | 9 |  |  |  **************************************************************************/ | 
    
    | 10 |  |  |  | 
    
    | 11 |  |  |  | 
    
    | 12 |  |  | /**************************************************************************/ | 
    
    | 13 |  |  | /**************************************************************************/ | 
    
    | 14 |  |  | /**                                                                       */ | 
    
    | 15 |  |  | /** USBX Component                                                        */ | 
    
    | 16 |  |  | /**                                                                       */ | 
    
    | 17 |  |  | /**   HID Class                                                           */ | 
    
    | 18 |  |  | /**                                                                       */ | 
    
    | 19 |  |  | /**************************************************************************/ | 
    
    | 20 |  |  | /**************************************************************************/ | 
    
    | 21 |  |  |  | 
    
    | 22 |  |  |  | 
    
    | 23 |  |  | /* Include necessary system files.  */ | 
    
    | 24 |  |  |  | 
    
    | 25 |  |  | #define UX_SOURCE_CODE | 
    
    | 26 |  |  |  | 
    
    | 27 |  |  | #include "ux_api.h" | 
    
    | 28 |  |  | #include "ux_host_class_hid.h" | 
    
    | 29 |  |  | #include "ux_host_stack.h" | 
    
    | 30 |  |  |  | 
    
    | 31 |  |  |  | 
    
    | 32 |  |  | /**************************************************************************/ | 
    
    | 33 |  |  | /*                                                                        */ | 
    
    | 34 |  |  | /*  FUNCTION                                               RELEASE        */ | 
    
    | 35 |  |  | /*                                                                        */ | 
    
    | 36 |  |  | /*    _ux_host_class_hid_resources_free                   PORTABLE C      */ | 
    
    | 37 |  |  | /*                                                           6.1          */ | 
    
    | 38 |  |  | /*  AUTHOR                                                                */ | 
    
    | 39 |  |  | /*                                                                        */ | 
    
    | 40 |  |  | /*    Chaoqiong Xiao, Microsoft Corporation                               */ | 
    
    | 41 |  |  | /*                                                                        */ | 
    
    | 42 |  |  | /*  DESCRIPTION                                                           */ | 
    
    | 43 |  |  | /*                                                                        */ | 
    
    | 44 |  |  | /*    This function frees the resources allocated to a HID device.        */ | 
    
    | 45 |  |  | /*                                                                        */ | 
    
    | 46 |  |  | /*  INPUT                                                                 */ | 
    
    | 47 |  |  | /*                                                                        */ | 
    
    | 48 |  |  | /*    hid                                   Pointer to HID class          */ | 
    
    | 49 |  |  | /*                                                                        */ | 
    
    | 50 |  |  | /*  OUTPUT                                                                */ | 
    
    | 51 |  |  | /*                                                                        */ | 
    
    | 52 |  |  | /*    Completion Status                                                   */ | 
    
    | 53 |  |  | /*                                                                        */ | 
    
    | 54 |  |  | /*  CALLS                                                                 */ | 
    
    | 55 |  |  | /*                                                                        */ | 
    
    | 56 |  |  | /*    None                                                                */ | 
    
    | 57 |  |  | /*                                                                        */ | 
    
    | 58 |  |  | /*  CALLED BY                                                             */ | 
    
    | 59 |  |  | /*                                                                        */ | 
    
    | 60 |  |  | /*    HID Class                                                           */ | 
    
    | 61 |  |  | /*                                                                        */ | 
    
    | 62 |  |  | /*  RELEASE HISTORY                                                       */ | 
    
    | 63 |  |  | /*                                                                        */ | 
    
    | 64 |  |  | /*    DATE              NAME                      DESCRIPTION             */ | 
    
    | 65 |  |  | /*                                                                        */ | 
    
    | 66 |  |  | /*  05-19-2020     Chaoqiong Xiao           Initial Version 6.0           */ | 
    
    | 67 |  |  | /*  09-30-2020     Chaoqiong Xiao           Modified comment(s),          */ | 
    
    | 68 |  |  | /*                                            resulting in version 6.1    */ | 
    
    | 69 |  |  | /*                                                                        */ | 
    
    | 70 |  |  | /**************************************************************************/ | 
    
    | 71 |  | 192 | UINT  _ux_host_class_hid_resources_free(UX_HOST_CLASS_HID *hid) | 
    
    | 72 |  |  | { | 
    
    | 73 |  |  |  | 
    
    | 74 |  |  |     UX_PARAMETER_NOT_USED(hid); | 
    
    | 75 |  |  |  | 
    
    | 76 |  |  |     /* Return successful completion.  */ | 
    
    | 77 |  | 192 |     return(UX_SUCCESS); | 
    
    | 78 |  |  | } | 
    
    | 79 |  |  |  |