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

Commit 094b8aca authored by Eduardo Valentin's avatar Eduardo Valentin Committed by Greg Kroah-Hartman
Browse files

staging: omap-thermal: document omap_bandgap_alert_init function



Document function that sets talert handling up.

Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d3790b3d
Loading
Loading
Loading
Loading
+11 −1
Original line number Original line Diff line number Diff line
@@ -842,7 +842,17 @@ static int omap_bandgap_tshut_init(struct omap_bandgap *bg_ptr,
	return 0;
	return 0;
}
}


/* Initialization of Talert. Call it only if HAS(TALERT) is set */
/**
 * omap_bandgap_alert_init() - setup and initialize talert handling
 * @bg_ptr: pointer to struct omap_bandgap
 * @pdev: pointer to device struct platform_device
 *
 * Call this function only in case the bandgap features HAS(TALERT).
 * In this case, the driver needs to handle the TALERT signals as an IRQs.
 * TALERT is a normal IRQ and it is fired any time thresholds (hot or cold)
 * are violated. In these situation, the driver must reprogram the thresholds,
 * accordingly to specified policy.
 */
static int omap_bandgap_talert_init(struct omap_bandgap *bg_ptr,
static int omap_bandgap_talert_init(struct omap_bandgap *bg_ptr,
				    struct platform_device *pdev)
				    struct platform_device *pdev)
{
{