Skip to content

fp-context: Check hidraw VID/PID with udev instead of an ioctl

Matthew Mirvish requested to merge mincrmatt12/spi-udev-enumerate into master

Previously, we checked hidraw devices against drivers by using the HIDIOCGRAWINFO ioctl. While this works, it's not ideal for doing unit tests since umockdev would have to implement hidraw ioctls.

The new approach uses the HID_ID property on the parent hid device, which contains the VID/PID pair.

Doing this means we don't have to emulate hidraw ioctls to mock the presence of hidraw devices, which helps with writing unit tests for the elan spi devices.

Merge request reports