Re: [PATCH] HSO: add option hso driver

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Greg KH <greg@...>
Cc: <jgarzik@...>, <netdev@...>, Andrew Bird <ajb@...>, Javier Marcet <javier@...>, Alan Cox <alan@...>, Filip Aben <f.aben@...>, Paulius Zaleckas <paulius.zaleckas@...>, Oliver Neukum <oliver@...>, <linux-usb@...>, <linux-kernel@...>
Date: Wednesday, May 14, 2008 - 11:58 am

On Tuesday 2008-05-13 23:51, Greg KH wrote:
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.)

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] HSO: add option hso driver, Greg KH, (Tue May 13, 5:51 pm)
Re: [PATCH] HSO: add option hso driver, Jan Engelhardt, (Wed May 14, 11:58 am)
Re: [PATCH] HSO: add option hso driver, Alan Cox, (Tue May 13, 6:27 pm)
Re: [PATCH] HSO: add option hso driver, Greg KH, (Wed May 14, 12:52 am)
Re: [PATCH] HSO: add option hso driver, Jeff Garzik, (Tue May 13, 7:26 pm)
Re: [PATCH] HSO: add option hso driver, Greg KH, (Tue May 13, 9:58 pm)
HSO: add option hso driver, Greg Kroah-Hartman, (Wed May 14, 12:57 am)
Re: HSO: add option hso driver, Jeff Garzik, (Wed Jun 11, 10:51 pm)
Re: HSO: add option hso driver, Paulius Zaleckas, (Wed May 14, 9:59 am)
Re: HSO: add option hso driver, Marcel Holtmann, (Wed May 14, 1:36 pm)
Re: HSO: add option hso driver, Filip Aben, (Wed May 14, 11:12 am)