From 48ec9be1eba930b06050262a1a651d794c31bc11 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Wed, 2 Oct 2024 15:47:47 -0600 Subject: trim trailing ws --- libusb/include/libusb/tusb_helpers.h.gen | 2 +- libusb/usb_common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libusb') diff --git a/libusb/include/libusb/tusb_helpers.h.gen b/libusb/include/libusb/tusb_helpers.h.gen index b46f5f6..364430e 100755 --- a/libusb/include/libusb/tusb_helpers.h.gen +++ b/libusb/include/libusb/tusb_helpers.h.gen @@ -71,7 +71,7 @@ if [[ ! -f 3rd-party/MS-LCID.txt || 3rd-party/MS-LCID.txt -ot 3rd-party/MS-LCID. fi <3rd-party/MS-LCID.txt \ grep -E '^\s*0x[0-9A-F]{4}\s+[a-z]' | sed 's/,.*//' | grep -v reserved | # find the lines we're interested in - sed -E 's/^\s*0x(..)(..)\s+(\S.*)/\2 \1 \3/p' | tr '[:lower:]-' '[:upper:]_' | # format them as 'PRIhex SUBhex UPPER_STR' + sed -E 's/^\s*0x(..)(..)\s+(\S.*)/\2 \1 \3/p' | tr '[:lower:]-' '[:upper:]_' | # format them as 'PRIhex SUBhex UPPER_STR' sort | sed -E 's/(..) (..) (.*)/#define LANGID_\3 0x\2\1/' | # format them as '#define LANGID_UPPER_STR 0xSUBPRI' column --table --output-separator=' ' diff --git a/libusb/usb_common.c b/libusb/usb_common.c index 7effcec..b938247 100644 --- a/libusb/usb_common.c +++ b/libusb/usb_common.c @@ -80,7 +80,7 @@ void usb_common_earlyinit(void) { TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, /* bmAttributes ; Bitmap of flags (self-powered and remote-wakeup are the only flags defined in USB 2.0) */ 100); /* bMaxPower (in mA) ; Maximum power consumption of the device when in this configuration */ } - + void usb_common_lateinit(void) { board_init(); tud_init(BOARD_TUD_RHPORT); -- cgit v1.2.3-2-g168b