From patchwork Thu Sep 27 20:08:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 11782 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 7272C24140 for ; Thu, 27 Sep 2012 20:09:33 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 31C87A18968 for ; Thu, 27 Sep 2012 20:09:33 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so5234855iej.11 for ; Thu, 27 Sep 2012 13:09:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=ad8TNQTfeSAGg8X9yrsasK3VBz8gaM3iRL5vtizxuKY=; b=bHAT+BzJN7WP1fYI2Ywu6vIeT/EFDYRwUa/wJY7mo/1hPbwYug4CWXZSOiyswnx39W d9kmNQxdSNdBGn12gCYU5/OV4LIcXCwlfnC6vXlM42X/ZWAR5jLNwYmv54OZFg5VnE01 GxEEfgIPWQqvDsF4JhqbqvNRf+A8ODTl/uYHRFJASLEoqA+nTuUr2y2NDsS8CSFJN3tk SgV+6metI/kwIvrDWm+2r8y0HsHuqsayftazF7wFmquwhNEAWzXHGlH9tZ+icOiH/HHo gAON5pJxQDppnbr30YZz6EhFccHeEEgx9O158HmvFSUWhlXXNE4tuSyREjwuGzQwjsf4 73Rg== Received: by 10.50.217.227 with SMTP id pb3mr15357687igc.28.1348776572952; Thu, 27 Sep 2012 13:09:32 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp436277igc; Thu, 27 Sep 2012 13:09:32 -0700 (PDT) Received: by 10.68.129.38 with SMTP id nt6mr14678616pbb.76.1348776572421; Thu, 27 Sep 2012 13:09:32 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id pi9si5467641pbb.12.2012.09.27.13.09.32 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 27 Sep 2012 13:09:32 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of mathieu.poirier@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of mathieu.poirier@linaro.org) smtp.mail=mathieu.poirier@linaro.org Received: by mail-pb0-f50.google.com with SMTP id md4so1686045pbc.37 for ; Thu, 27 Sep 2012 13:09:32 -0700 (PDT) Received: by 10.66.83.33 with SMTP id n1mr12097483pay.66.1348776572199; Thu, 27 Sep 2012 13:09:32 -0700 (PDT) Received: from localhost.localdomain (S0106002369de4dac.cg.shawcable.net. [70.73.24.112]) by mx.google.com with ESMTPS id sa2sm1587890pbc.4.2012.09.27.13.09.31 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 27 Sep 2012 13:09:31 -0700 (PDT) From: mathieu.poirier@linaro.org To: patches@linaro.org Subject: [PATCH 09/57] power: ab8500_fg: usleep_range instead of short msleep Date: Thu, 27 Sep 2012 14:08:26 -0600 Message-Id: <1348776554-10019-10-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1348776554-10019-1-git-send-email-mathieu.poirier@linaro.org> References: <1348776554-10019-1-git-send-email-mathieu.poirier@linaro.org> X-Gm-Message-State: ALoCoQkYclZzpU1Va1dBn7S01LE75+bkCe+E/oTTKKuXCs9vELz7Ha7IzsTuECGc3wDd9yc0EGtY From: Jonas Aaberg Signed-off-by: Jonas ABERG Signed-off-by: Mathieu Poirier Reviewed-by: Johan BJORNSTEDT --- drivers/power/ab8500_fg.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/power/ab8500_fg.c b/drivers/power/ab8500_fg.c index 1e02b00..0db17c7 100644 --- a/drivers/power/ab8500_fg.c +++ b/drivers/power/ab8500_fg.c @@ -957,7 +957,7 @@ static int ab8500_fg_load_comp_volt_to_capacity(struct ab8500_fg *di) do { vbat += ab8500_fg_bat_voltage(di); i++; - msleep(5); + usleep_range(5000, 5001); } while (!ab8500_fg_inst_curr_done(di)); ab8500_fg_inst_curr_finalize(di, &di->inst_curr);