Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363480
b: refs/heads/master
c: 8a1cefe
h: refs/heads/master
v: v3
  • Loading branch information
Eduardo Valentin authored and Greg Kroah-Hartman committed Mar 15, 2013
1 parent 459d4be commit 73bb787
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0f0ed7dee23ff06456c13ad4f30829ccb761834b
refs/heads/master: 8a1cefe857ae936d5a5f731eb301737139434580
10 changes: 10 additions & 0 deletions trunk/drivers/staging/omap-thermal/omap-bandgap.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,16 @@ int omap_bandgap_mcelsius_to_adc(struct omap_bandgap *bg_ptr, long temp,
return ret;
}

/**
* omap_bandgap_add_hyst() - add hysteresis (in mCelsius) to an ADC value
* @bg_ptr: struct omap_bandgap pointer
* @adc_val: temperature value in ADC representation
* @hyst_val: hysteresis value in mCelsius
* @sum: address where to write the resulting temperature (in ADC scale)
*
* Adds an hysteresis value (in mCelsius) to a ADC temperature value.
* Returns 0 on success, -ERANGE otherwise.
*/
static
int omap_bandgap_add_hyst(struct omap_bandgap *bg_ptr, int adc_val,
int hyst_val, u32 *sum)
Expand Down

0 comments on commit 73bb787

Please sign in to comment.