Skip to content

Commit

Permalink
usb: device: hid: remove CONFIG_USB_HID_PROTOCOL_CODE
Browse files Browse the repository at this point in the history
Kconfig option USB_HID_PROTOCOL_CODE, deprecated in v2.6,
is finally removed.

Signed-off-by: Johann Fischer <[email protected]>
  • Loading branch information
jfischer-no authored and carlescufi committed Sep 5, 2023
1 parent 176713a commit ad498aa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
3 changes: 3 additions & 0 deletions doc/releases/release-notes-3.5.rst
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ Networking
USB
***

* USB device HID
* Kconfig option USB_HID_PROTOCOL_CODE, deprecated in v2.6, is finally removed.

Devicetree
**********

Expand Down
9 changes: 0 additions & 9 deletions subsys/usb/device/class/hid/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,4 @@ config USB_HID_BOOT_PROTOCOL
See Chapter 4.2 of Device Class Definition for Human Interface Devices 1.11
for more information.

config USB_HID_PROTOCOL_CODE
int "HID Boot Interface protocol code (DEPRECATED)"
default 0
range 0 2
depends on USB_HID_BOOT_PROTOCOL
help
This option is deprecated.
Please use usb_hid_set_proto_code() instead.

endif # USB_DEVICE_HID
2 changes: 1 addition & 1 deletion subsys/usb/device/class/hid/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ struct usb_hid_config {
.bNumEndpoints = 1, \
.bInterfaceClass = USB_BCC_HID, \
.bInterfaceSubClass = 1, \
.bInterfaceProtocol = CONFIG_USB_HID_PROTOCOL_CODE, \
.bInterfaceProtocol = 0, \
.iInterface = 0, \
}
#else
Expand Down

0 comments on commit ad498aa

Please sign in to comment.