Commit Graph

10 Commits

Author SHA1 Message Date
Emil Velikov
52f333ae04 ci: add codespell action, fix all typos
v2:
 - ignore NEWS, omit suppressions
 - split off style changes

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2024-10-16 16:57:34 +01:00
Emil Velikov
425f92c009 usb-spec: move the opening curly brackets to end of line
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>
2024-10-16 16:56:02 +01:00
Emil Velikov
92547bee59 lsusb: drop the genericstrtable hash tables
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>
2024-10-01 13:44:56 +01:00
Emil Velikov
d9e91b7dd0 lsusb: drop the videoterminal hash table
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>
2024-10-01 13:44:56 +01:00
Emil Velikov
0f5c572b73 lsusb: drop the audioterminal hash table
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>
2024-10-01 13:44:56 +01:00
Aurelien Jarno
dc547ea1fc Fix a typo in usb-spec.h
Rigth => Right

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2023-04-16 19:30:57 +02:00
Greg Kroah-Hartman
23b232bf36 rename "GPL-2.0+" to "GPL-2.0-or-later"
This makes `reuse lint` happy as well as license lawyers...

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-02-22 14:25:02 +01:00
Greg Kroah-Hartman
3c2dba4053 fix up standard int types
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>
2018-12-28 09:50:15 +01:00
Greg Kroah-Hartman
f6f293c82d Add correct SPDX license identifiers to all files
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>
2017-12-08 15:46:10 +01:00
Tom Gundersen
5d7ea40bc9 drop dependency on usb.ids
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>
2013-09-12 15:59:31 -07:00