lkml.org 
[lkml]   [2013]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 05/26] mfd: ab8500-gpadc: Change to mdelay for greater resolution
    Date
    From: Jonas Aaberg <jonas.aberg@stericsson.com>

    The resolution of msleep is related to HZ, so with HZ set to
    100 any msleep of less than 10ms will become ~10ms.

    Signed-off-by: Lee Jones <lee.jones@linaro.org>
    Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
    Reviewed-by: Bibek BASU <bibek.basu@stericsson.com>
    Tested-by: Bibek BASU <bibek.basu@stericsson.com>
    ---
    drivers/mfd/ab8500-gpadc.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/mfd/ab8500-gpadc.c b/drivers/mfd/ab8500-gpadc.c
    index 29d72a2..3883b93 100644
    --- a/drivers/mfd/ab8500-gpadc.c
    +++ b/drivers/mfd/ab8500-gpadc.c
    @@ -344,7 +344,7 @@ int ab8500_gpadc_read_raw(struct ab8500_gpadc *gpadc, u8 channel)
    * Delay might be needed for ABB8500 cut 3.0, if not, remove
    * when hardware will be available
    */
    - msleep(1);
    + mdelay(1);
    break;
    }
    /* Intentional fallthrough */
    --
    1.7.9.5


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