Skip to content

Commit

Permalink
staging: omap-thermal: add documentation for omap_bandgap_read_temp
Browse files Browse the repository at this point in the history
Document function which reads temperature register, depending on
bandgap device version.

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 7a556e6 commit 4a6554e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/staging/omap-thermal/omap-bandgap.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,16 @@ static int omap_bandgap_power(struct omap_bandgap *bg_ptr, bool on)
return 0;
}

/**
* omap_bandgap_read_temp() - helper function to read sensor temperature
* @bg_ptr: pointer to omap_bandgap structure
* @id: bandgap sensor id
*
* Function to concentrate the steps to read sensor temperature register.
* This function is desired because, depending on bandgap device version,
* it might be needed to freeze the bandgap state machine, before fetching
* the register value.
*/
static u32 omap_bandgap_read_temp(struct omap_bandgap *bg_ptr, int id)
{
struct temp_sensor_registers *tsr;
Expand Down

0 comments on commit 4a6554e

Please sign in to comment.