Re: [PATCH] HSO: add option hso driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jan Engelhardt
Date: Wednesday, May 14, 2008 - 8: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, 2:51 pm)
Re: [PATCH] HSO: add option hso driver, Alan Cox, (Tue May 13, 3:27 pm)
Re: [PATCH] HSO: add option hso driver, Jeff Garzik, (Tue May 13, 4:26 pm)
Re: [PATCH] HSO: add option hso driver, Greg KH, (Tue May 13, 6:58 pm)
Re: [PATCH] HSO: add option hso driver, Greg KH, (Tue May 13, 9:52 pm)
HSO: add option hso driver, Greg Kroah-Hartman, (Tue May 13, 9:57 pm)
Re: HSO: add option hso driver, Paulius Zaleckas, (Wed May 14, 6:59 am)
Re: HSO: add option hso driver, Filip Aben, (Wed May 14, 8:12 am)
Re: [PATCH] HSO: add option hso driver, Jan Engelhardt, (Wed May 14, 8:58 am)
Re: HSO: add option hso driver, Marcel Holtmann, (Wed May 14, 10:36 am)
Re: HSO: add option hso driver, Jeff Garzik, (Wed Jun 11, 7:51 pm)