Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a556e6a authored by Eduardo Valentin's avatar Eduardo Valentin Committed by Greg Kroah-Hartman
Browse files

staging: omap-thermal: add documentation for omap_bandgap_power



Document the helper function to turn a bandgap device on and off.

Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3d84e529
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -86,6 +86,14 @@ do { \
	omap_bandgap_writel(bg_ptr, r, t->reg);			\
} while (0)

/**
 * omap_bandgap_power() - controls the power state of a bandgap device
 * @bg_ptr: pointer to omap_bandgap structure
 * @on: desired power state (1 - on, 0 - off)
 *
 * Used to power on/off a bandgap device instance. Only used on those
 * that features tempsoff bit.
 */
static int omap_bandgap_power(struct omap_bandgap *bg_ptr, bool on)
{
	int i;