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

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

staging: omap-thermal: update omap_bandgap_unmask_interrupts documentation



Proper document the function to configure the IRQ event masks.

Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 91021689
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -337,7 +337,15 @@ int omap_bandgap_add_hyst(struct omap_bandgap *bg_ptr, int adc_val,

/***   Helper functions handling device Alert/Shutdown signals   ***/

/* Talert masks. Call it only if HAS(TALERT) is set */
/**
 * omap_bandgap_unmask_interrupts() - unmasks the events of thot & tcold
 * @bg_ptr: struct omap_bandgap pointer
 * @t_hot: hot temperature value to trigger alert signal
 * @t_cold: cold temperature value to trigger alert signal
 *
 * Checks the requested t_hot and t_cold values and configures the IRQ event
 * masks accordingly. Call this function only if bandgap features HAS(TALERT).
 */
static void omap_bandgap_unmask_interrupts(struct omap_bandgap *bg_ptr, int id,
					   u32 t_hot, u32 t_cold)
{