Skip to content

Commit

Permalink
staging: omap-thermal: add documentation for omap_bandgap_validate
Browse files Browse the repository at this point in the history
Document the helper to validate a struct omap_bandgap and a sensor id.

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 ff4a44c commit e72b7bb
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 @@ -437,6 +437,14 @@ int omap_bandgap_update_alert_threshold(struct omap_bandgap *bg_ptr, int id,
return err;
}

/**
* omap_bandgap_validate() - helper to check the sanity of a struct omap_bandgap
* @bg_ptr: struct omap_bandgap pointer
* @id: bandgap sensor id
*
* Checks if the bandgap pointer is valid and if the sensor id is also
* applicable.
*/
static inline int omap_bandgap_validate(struct omap_bandgap *bg_ptr, int id)
{
int ret = 0;
Expand Down

0 comments on commit e72b7bb

Please sign in to comment.