Skip to content

Commit

Permalink
staging: omap-thermal: document _omap_bandgap_write_threshold function
Browse files Browse the repository at this point in the history
Document function to update alert thresholds.

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 38d99e8 commit 9efa93b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions drivers/staging/omap-thermal/omap-bandgap.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,19 @@ static inline int omap_bandgap_validate(struct omap_bandgap *bg_ptr, int id)
return ret;
}

/**
* _omap_bandgap_write_threshold() - helper to update TALERT t_cold or t_hot
* @bg_ptr: struct omap_bandgap pointer
* @id: bandgap sensor id
* @val: value (mCelsius) of a new threshold
* @hot: desired threshold to be updated. true if threshold hot, false if
* threshold cold
*
* It will update the required thresholds (hot and cold) for TALERT signal.
* This function can be used to update t_hot or t_cold, depending on @hot value.
* Validates the mCelsius range and update the requested threshold.
* Call this function only if bandgap features HAS(TALERT).
*/
int _omap_bandgap_write_threshold(struct omap_bandgap *bg_ptr, int id, int val,
bool hot)
{
Expand Down

0 comments on commit 9efa93b

Please sign in to comment.