Changeset cf7561f in mainline for uspace/drv/bus/usb/usbflbk/main.c
- Timestamp:
- 2011-10-30T13:09:04Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- aa05b29
- Parents:
- 882580a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbflbk/main.c
r882580a rcf7561f 74 74 } 75 75 76 /** Callback when new device is about to be removed. 77 * 78 * @param dev Representation of a generic DDF device. 79 * @return Error code. 80 */ 81 static int usbfallback_device_remove(usb_device_t *dev) 82 { 83 return EOK; 84 } 85 76 86 /** Callback when new device is removed and recognized as gone by DDF. 77 87 * … … 93 103 return EOK; 94 104 } 105 95 106 /** USB fallback driver ops. */ 96 static usb_driver_ops_t usbfallback_driver_ops = {107 static const usb_driver_ops_t usbfallback_driver_ops = { 97 108 .device_add = usbfallback_device_add, 109 .device_rem = usbfallback_device_remove, 98 110 .device_gone = usbfallback_device_gone, 99 111 }; 100 112 101 113 /** USB fallback driver. */ 102 static usb_driver_t usbfallback_driver = {114 static const usb_driver_t usbfallback_driver = { 103 115 .name = NAME, 104 116 .ops = &usbfallback_driver_ops,
Note:
See TracChangeset
for help on using the changeset viewer.