History

USB: ch9: add "USB_" prefix in front of TEST defines

For some reason, the TEST_ defines in the usb/ch9.h files did not have the USB_ prefix on it, making it a bit confusing when reading the file, as well as not the nicest thing to do in a uapi file. So fix that up and add the USB_ prefix on to them, and fix up all in-kernel usages. This included deleting the duplicate copy in the net2272.h file.

Greg Kroah-Hartman committed 6 years ago

Commit 62fb45d1 parent f8f02d520 files · +99 −107Browse files

Showing the changes to include/uapi/linux/usb (1 of 20 files). Show all

Unified · Split

include/uapi/linux/usb/ch9.h+5−5
@@ -138,11 +138,11 @@ · 137 unmodified lines
138138 * Test Mode Selectors
139139 * See USB 2.0 spec Table 9-7
140140 */
141−#define TEST_J 1
142−#define TEST_K 2
143−#define TEST_SE0_NAK 3
144−#define TEST_PACKET 4
145−#define TEST_FORCE_EN 5
141+#define USB_TEST_J 1
142+#define USB_TEST_K 2
143+#define USB_TEST_SE0_NAK 3
144+#define USB_TEST_PACKET 4
145+#define USB_TEST_FORCE_ENABLE 5
146146
147147 /* Status Type */
148148 #define USB_STATUS_TYPE_STANDARD 0

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t