CVSROOT:        /cvs
Module name:    src
Changes by:     piro...@cvs.openbsd.org 2013/11/15 01:17:44

Modified files:
        sys/dev/usb    : uhid.c uhidev.h ukbd.c ums.c utpms.c 

Log message:
Clean-up the HID environment.

This set of drivers were very very dirty.

i/ Clean-up the match/attach multi-casting hackjob
- stop casting aux to every attach arg in existance
- be consistent about casting it only to uhidev_attach_arg
- fetch the usb_attach_arg from above where needed

ii/ Sort out the activate routines
- leave the deactivation to the parent (uhidev(4))
- ditch the sc_dying flag in favour of usbd_is_dying()

iii/ Get closer to keeping all the usb hid information in the uhidev
structure (one uhidev per reportID)
- store the usbd_device in the uhidev
- use it consistently instead of always peaking at the parent's
soft state

Okay mpi@

Reply via email to