Instead of using a single flat array for all sensors, put all the
authormpi <mpi@openbsd.org>
Thu, 30 Apr 2015 10:00:50 +0000 (10:00 +0000)
committermpi <mpi@openbsd.org>
Thu, 30 Apr 2015 10:00:50 +0000 (10:00 +0000)
commit3d645ebb7575e2dd2a2dfd951ffc9c1712d33920
tree94b7293e8edb86195bb87cd249a57c732911f9d3
parent51e4bd1aca6f068154be7cc99b6ca57e32ba50ab
Instead of using a single flat array for all sensors, put all the
children of a sensor in a separate structure.

Children sensors should only be probbed if their parent is active.
This make the dependency tree explicit and will reduce the number
of I/O.

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