Skip to content

Commit

Permalink
staging: omap-thermal: add documentation for omap_bandgap_power
Browse files Browse the repository at this point in the history
Document the helper function to turn a bandgap device on and off.

Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Eduardo Valentin authored and Greg Kroah-Hartman committed Mar 15, 2013
1 parent 3d84e52 commit 7a556e6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/staging/omap-thermal/omap-bandgap.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ do { \
omap_bandgap_writel(bg_ptr, r, t->reg); \
} while (0)

/**
* omap_bandgap_power() - controls the power state of a bandgap device
* @bg_ptr: pointer to omap_bandgap structure
* @on: desired power state (1 - on, 0 - off)
*
* Used to power on/off a bandgap device instance. Only used on those
* that features tempsoff bit.
*/
static int omap_bandgap_power(struct omap_bandgap *bg_ptr, bool on)
{
int i;
Expand Down

0 comments on commit 7a556e6

Please sign in to comment.