lkml.org 
[lkml]   [2013]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 42/50] staging: omap-thermal: document omap_bandgap_tshut_init function
    Date
    Add documentation for the function to setup TSHUT handling

    Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
    ---
    drivers/staging/omap-thermal/omap-bandgap.c | 12 ++++++++++++
    1 files changed, 12 insertions(+), 0 deletions(-)

    diff --git a/drivers/staging/omap-thermal/omap-bandgap.c b/drivers/staging/omap-thermal/omap-bandgap.c
    index aa90539..f2ebbcf 100644
    --- a/drivers/staging/omap-thermal/omap-bandgap.c
    +++ b/drivers/staging/omap-thermal/omap-bandgap.c
    @@ -798,6 +798,18 @@ static int omap_bandgap_set_continuous_mode(struct omap_bandgap *bg_ptr)
    return 0;
    }

    +/**
    + * omap_bandgap_tshut_init() - setup and initialize tshut 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(TSHUT).
    + * In this case, the driver needs to handle the TSHUT signal as an IRQ.
    + * The IRQ is wired as a GPIO, and for this purpose, it is required
    + * to specify which GPIO line is used. TSHUT IRQ is fired anytime
    + * one of the bandgap sensors violates the TSHUT high/hot threshold.
    + * And in that case, the system must go off.
    + */
    static int omap_bandgap_tshut_init(struct omap_bandgap *bg_ptr,
    struct platform_device *pdev)
    {
    --
    1.7.7.1.488.ge8e1c


    \
     
     \ /
      Last update: 2013-03-15 15:01    [W:3.622 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site