CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2021/09/09 23:47:38
Modified files:
sys/dev/usb : ucc.c ugold.c uhid.c uhidev.c uhidev.h ukbd.c
ums.c umstc.c uwacom.c
Log message:
Instead of letting uhidev drivers get the report sizes, do it once in
uhidev and pass the same sizes as part of the attach arguments. Makes
the uhidev drivers a bit less repetitive.
It might look tempting to let uhidev assign the sizes after a driver has
attached, removing the need to repeat this logic in each driver. This
does however not work since the input size must be known while calling
uhidev_open() in order to open the interrupt pipe; and uhidev_open() is
called from several attach routines.
Note that this change only works and applies to when attaching to a
single report ID.
ok jcs@