That MODULE_DESCRIPTION(MOD_DESCRIPTION) looks so redundant. [Same
for MOD_AUTHOR and MOD_LICENSE.]
Just write MODULE_DESCRIPTION("USB High Speed Option driver"), no?
Also, "Option" sounds a bit misleading. Is Option a company name,
a product name, or the original English word "option"? It's confusing.
This does not really need a name, since it is an anon union anyway.
The usual bunch of \s.. er, has this gone through checkpatch? [Seems
mostly clean though.]
const char *port_name;
You could refactor this using a static array mapping from port to
string. Same for the following three functions (hso_port_to_mux and
hso_mux_to_port).
static const char *const names[] = {
[HSO_PORT_xxx] = "xxx";
};
const?
[...]
I would have never thought! (Also elsewhere.)
--