Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for HID over SPI #486

Merged
merged 1 commit into from
Dec 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions linux/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,7 @@ static struct hid_device_info * create_device_info_for_device(struct udev_device
case BUS_BLUETOOTH:
case BUS_I2C:
case BUS_USB:
case BUS_SPI:
break;

default:
Expand Down Expand Up @@ -681,6 +682,14 @@ static struct hid_device_info * create_device_info_for_device(struct udev_device

break;

case BUS_SPI:
cur_dev->manufacturer_string = wcsdup(L"");
cur_dev->product_string = utf8_to_wchar_t(product_name_utf8);

cur_dev->bus_type = HID_API_BUS_SPI;

break;

default:
/* Unknown device type - this should never happen, as we
* check for USB and Bluetooth devices above */
Expand Down