Since upd(4) currently supports a known but limited number of sensors,
authormpi <mpi@openbsd.org>
Mon, 27 Apr 2015 09:14:45 +0000 (09:14 +0000)
committermpi <mpi@openbsd.org>
Mon, 27 Apr 2015 09:14:45 +0000 (09:14 +0000)
commitdd459b5acd677d6e9c65fe58530b77a5f625c047
tree1c190504dc37aa5c3ae547d2f76d924f57017273
parentfce32ad4d7a295d6ec79384166423b82258a624f
Since upd(4) currently supports a known but limited number of sensors,
parse the HID descriptor multiple times to find them.

This logic is necessary to later create a tree of sensors in order to
avoid lookups in the hot path for sensors that depend on the value of
others.

From David Higgs.
sys/dev/usb/upd.c