On Sun, Jul 13, 2008 at 02:23:17PM -0700, Andrew Morton wrote:That doesn't work. In this case, linux/clk.h _is_ the only source of the API. The API is just a defined set of functions. How an architecture or machine class implements it is at the discressiom of whoever's writing that code. The point being, that we have a fixed core API which drivers can use which is portable across different SoCs. However, there certainly are implementation specific issues which architecture code needs to know about - hence why the implementation has (until genclk) been left completely up to that code to decide and implement the interface. So, the only place for that documentation is the header file. Documenting an implementation will just confuse the issue and lead people into thinking that it somehow represents the way things should be done. Even genclk doesn't represent "The Way Things Should Be Done" - it's just yet another implementation of the interface. -- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: --
| Davide Libenzi | [patch 7/8] fdmap v2 - implement sys_socket2 |
| Greg Kroah-Hartman | [PATCH 018/196] coda: convert struct class_device to struct device |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| David Newall | Re: Slow DOWN, please!!! |
git: | |
| Christoph Lameter | Network latency regressions from 2.6.22 to 2.6.29 |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Arjan van de Ven | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
