Re: [RFC][PATCH 5/5] OMAP SSI API documentation

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Felipe Balbi
Date: Thursday, October 9, 2008 - 9:47 am

On Fri, Oct 03, 2008 at 02:52:30PM +0300, Carlos Chinea wrote:

there are issues in the documentation as well.


don't ifdef here. This file should only be built if SSI is selected.


you see how many includes you need to make it work ?

It should be #include <linux/ssi.h> and that's all. This driver can be
generic enough to build and work on non-omap platforms, can't it ?


why do you need to let the internal clock know so much about the user ?
I think struct device * should be enough here.


tabify these.


tabify


tabify and the closing bracket should be aligned with [0]

	     ^  trailing whitespace


tabify
tabify and the closing bracket should be aligned with [1]

	     ^  trailing whitespace


tabify
tabify and the closing bracket should be aligned with [2]

	     ^  trailing whitespace


tabify
tabify and the closing bracket should be aligned with [3]

	     ^  trailing whitespace


tabify
tabify and the closing bracket should be aligned with [4]

	     ^  trailing whitespace


tabify and the closing bracket should be aligned with [5]

	      ^  trailing whitespace


this bracket should be aligned with .dev


this is wrong, looks like mode sould be passed down to the driver and
the driver would set_ssi_mode().


the cast is unnecessary and you're abusing platform_data, I'd say.


this looks like it should be done by the driver and not board-specific.


if you get and error, return already, will avoid the else below.


it doesn't look like you do anything useful with this ssi_internal_clk
structure. I'd say you can move the clk definition to <mach/clock.h> if
Tony, Paul and Kevin are ok with it.


if the clk definition can be moved to <mach/clock.h> then you can
simply:

return platform_device_register(&ssi_pdev);


let's use an extension to this file: ssi.txt

							  ^ trailing whitespace


s/an/and (at the end)

				       ^ add a space


you could go simpler and call it:

/sys/bus/ssi/devices/X-Y: (X == port, Y == channel);


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

Messages in current thread:
[RFC][PATCH 2/5] OMAP SSI driver interface, Carlos Chinea, (Fri Oct 3, 4:52 am)
[RFC][PATCH 3/5] OMAP SSI driver code, Carlos Chinea, (Fri Oct 3, 4:52 am)
[RFC][PATCH 4/5] OMAP SSI integration into misc drivers, Carlos Chinea, (Fri Oct 3, 4:52 am)
[RFC][PATCH 5/5] OMAP SSI API documentation, Carlos Chinea, (Fri Oct 3, 4:52 am)
Re: [RFC][PATCH 2/5] OMAP SSI driver interface, Felipe Balbi, (Mon Oct 6, 4:29 pm)
Re: [RFC][PATCH 3/5] OMAP SSI driver code, Felipe Balbi, (Mon Oct 6, 5:03 pm)
Re: [RFC][PATCH 2/5] OMAP SSI driver interface, David Brownell, (Mon Oct 6, 6:03 pm)
RE: [RFC][PATCH 2/5] OMAP SSI driver interface, Woodruff, Richard, (Tue Oct 7, 4:56 am)
Re: [RFC][PATCH 3/5] OMAP SSI driver code, Felipe Balbi, (Tue Oct 7, 3:01 pm)
Re: [RFC][PATCH 5/5] OMAP SSI API documentation, Felipe Balbi, (Thu Oct 9, 9:47 am)