Date:2011-03-08 22:56:52 (8 years 7 months ago)
Author:Werner Almesberger
Commit:0293911fede67e0f75c2923908cbc910aa852e84
Message:atusb/fw/usb/: corrected type of user-provided descriptor

- usb.h, usb.c (user_get_descriptor): "reply" is simply "const uint8_t *",
not "const uint8_t * const *"
Files: atusb/fw/usb/usb.c (1 diff)
atusb/fw/usb/usb.h (1 diff)

Change Details

atusb/fw/usb/usb.c
3737
3838int (*user_setup)(const struct setup_request *setup);
3939int (*user_get_descriptor)(uint8_t type, uint8_t index,
40    const uint8_t * const *reply, uint8_t *size);
40    const uint8_t **reply, uint8_t *size);
4141void (*user_reset)(void);
4242
4343
atusb/fw/usb/usb.h
126126
127127extern int (*user_setup)(const struct setup_request *setup);
128128extern int (*user_get_descriptor)(uint8_t type, uint8_t index,
129    const uint8_t * const *reply, uint8_t *size);
129    const uint8_t **reply, uint8_t *size);
130130extern void (*user_reset)(void);
131131
132132

Archive Download the corresponding diff file



interactive