That's our defined style and that we've been using in the majority of
the codebase.
Disable clang-format on a couple of sections, where it gets a silly
moment and insists on reformatting everything.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
This seems like a premature ahead-of-time optimisation, which actually
hurts both code/binary size while providing no performance benefit.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
This seems like a premature ahead-of-time optimisation, which actually
hurts both code/binary size while providing no performance benefit.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
This seems like a premature ahead-of-time optimisation, which actually
hurts both code/binary size while providing no performance benefit.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Use the C standard uint*_t variable types, not the "unix" types of
u_int*_t as we should be able to all finally agree on one type of C
variables.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This removes the "boiler-plate" license texts in the individual files to
use SPDX identifiers instead. Cleans up the text a lot.
All copyright notices were left intact, as this does not change
anything.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Also remove usb.ids from the repository. [Note that these were probably
never used by distributions regarless, as most distros ship the usb.ids
directly from upstream.]
Hardcode the usb-spec information that used to be in usb.ids,
but which was not moved to hwdb.
Increase the size of tha hash table from 16 to 512, though using a
hash at all is probably overkill at this point.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>