Skip to content

Commit

Permalink
ARM: SAMSUNG: Add documentation to the clock registration calls.
Browse files Browse the repository at this point in the history
Add some kerneldoc documentation to the s3c24xx_register_clock and the
s3c24xx_register_clocks() call.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
  • Loading branch information
Ben Dooks committed Jan 26, 2010
1 parent ab5d97d commit 8428d47
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions arch/arm/plat-samsung/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,12 @@ struct clk s3c24xx_uclk = {

/* initialise the clock system */

/**
* s3c24xx_register_clock() - register a clock
* @clk: The clock to register
*
* Add the specified clock to the list of clocks known by the system.
*/
int s3c24xx_register_clock(struct clk *clk)
{
if (clk->enable == NULL)
Expand All @@ -324,6 +330,14 @@ int s3c24xx_register_clock(struct clk *clk)
return 0;
}

/**
* s3c24xx_register_clocks() - register an array of clock pointers
* @clks: Pointer to an array of struct clk pointers
* @nr_clks: The number of clocks in the @clks array.
*
* Call s3c24xx_register_clock() for all the clock pointers contained
* in the @clks list. Returns the number of failures.
*/
int s3c24xx_register_clocks(struct clk **clks, int nr_clks)
{
int fails = 0;
Expand Down

0 comments on commit 8428d47

Please sign in to comment.