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.
Showing the changes to include/uapi/linux (1 of 20 files). Show all
Unified · Split
| @@ -138,11 +138,11 @@ · 137 unmodified lines | ||
| 138 | 138 | * Test Mode Selectors |
| 139 | 139 | * See USB 2.0 spec Table 9-7 |
| 140 | 140 | */ |
| 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 | |
| 146 | 146 | |
| 147 | 147 | /* Status Type */ |
| 148 | 148 | #define USB_STATUS_TYPE_STANDARD 0 |