Skip to content

Commit

Permalink
uclogic: Switch from hid_is_using_ll_driver to hid_is_usb
Browse files Browse the repository at this point in the history
The hid_is_using_ll_driver function was deprecated and has been removed in
Linux 6.3
  • Loading branch information
rayslava authored and spbnick committed May 3, 2023
1 parent ae07a3d commit eca6e1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hid-uclogic-params.c
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,9 @@ int uclogic_params_init(struct uclogic_params *params,

/* Check arguments */
if (params == NULL || hdev == NULL
#if KERNEL_VERSION(4, 14, 0) <= LINUX_VERSION_CODE
#if KERNEL_VERSION(6, 3, 0) <= LINUX_VERSION_CODE
|| !hid_is_usb(hdev)
#elif KERNEL_VERSION(4, 14, 0) <= LINUX_VERSION_CODE
|| !hid_is_using_ll_driver(hdev, &usb_hid_driver)
#endif
) {
Expand Down

0 comments on commit eca6e1b

Please sign in to comment.