Skip to content

Commit

Permalink
staging: omap-thermal: add documentation for omap_bandgap_mcelsius_to…
Browse files Browse the repository at this point in the history
…_adc

Document the conversion function.

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 26a70ed commit e7f60b5
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 @@ -262,6 +262,16 @@ int omap_bandgap_adc_to_mcelsius(struct omap_bandgap *bg_ptr,
return ret;
}

/**
* omap_bandgap_mcelsius_to_adc() - converts a mCelsius value to ADC scale
* @bg_ptr: struct omap_bandgap pointer
* @temp: value in mCelsius
* @adc: address where to write the resulting temperature in ADC representation
*
* Simple conversion from mCelsius to ADC values. In case the temp value
* is out of the ADC conv table range, it returns -ERANGE, 0 on success.
* The conversion table is indexed by the ADC values.
*/
static
int omap_bandgap_mcelsius_to_adc(struct omap_bandgap *bg_ptr, long temp,
int *adc)
Expand Down

0 comments on commit e7f60b5

Please sign in to comment.