From patchwork Thu Dec 13 15:21:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 13541 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 0CC4723E2A for ; Thu, 13 Dec 2012 15:22:05 +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 B2276A18A65 for ; Thu, 13 Dec 2012 15:22:04 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id c10so4139131ieb.11 for ; Thu, 13 Dec 2012 07:22:04 -0800 (PST) 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:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=IQEG5qSwNMevMGKxWBA2AU0x2K2gBHMkHFjA3/cv/8o=; b=f35xr6+h94ji8qu7D9tu4XtBee5vsmfYkdw+qIDk3VDEZXKTj6FTdflsWfgZFw18R4 9QCc/GgfQS3AXSrfDvsXUTLCswqHRr+cIyb9vxpng6Kr5aol3AApSNEHJRwtrhRt7KZf cI/3jqtHy4zOS+7Np8OyZaQRf4WNs+SULVUQ4ZpUzflqcNo+QQCVRZr8stynwXnhfjtZ 1gRtiTEh3rPBHhb2HkS1OUJRbRxBYckLiOZDOZCVbl0Iy7IWNK5ah8ln4JdT+4f1UBiK zOSmHJ9UqtL2DDwuc426RYudzLQHruD+UfxvKorkcbjMhnbBSeu0LCn8RowAgmqt/oax TZOg== Received: by 10.42.32.200 with SMTP id f8mr1724896icd.18.1355412124193; Thu, 13 Dec 2012 07:22:04 -0800 (PST) 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.67.148 with SMTP id n20csp16253igt; Thu, 13 Dec 2012 07:22:03 -0800 (PST) Received: by 10.194.19.170 with SMTP id g10mr9062713wje.56.1355412123419; Thu, 13 Dec 2012 07:22:03 -0800 (PST) Received: from mail-we0-f172.google.com (mail-we0-f172.google.com [74.125.82.172]) by mx.google.com with ESMTPS id ej2si3154329wid.17.2012.12.13.07.22.03 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Dec 2012 07:22:03 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.172 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.172; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.172 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-we0-f172.google.com with SMTP id r3so1015328wey.31 for ; Thu, 13 Dec 2012 07:22:03 -0800 (PST) Received: by 10.180.88.71 with SMTP id be7mr4003628wib.17.1355412122933; Thu, 13 Dec 2012 07:22:02 -0800 (PST) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id i6sm8200894wix.5.2012.12.13.07.22.01 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Dec 2012 07:22:02 -0800 (PST) From: Lee Jones To: linux-kernel@vger.kernel.org Cc: cbou@mail.ru, Jonas Aaberg , Lee Jones Subject: [PATCH 05/18] power: ab8500_fg: usleep_range instead of short msleep Date: Thu, 13 Dec 2012 15:21:28 +0000 Message-Id: <1355412102-14265-6-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1355412102-14265-1-git-send-email-lee.jones@linaro.org> References: <1355412102-14265-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQnVIPYdzo/R4YsbTqRYvBlYEyU3oIhPejkqrOqK9bK+MUj48sxHDGrgNrk3IwPxmzJTKP0L From: Jonas Aaberg Signed-off-by: Lee Jones Signed-off-by: Jonas ABERG Reviewed-by: Johan BJORNSTEDT --- drivers/power/ab8500_fg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/ab8500_fg.c b/drivers/power/ab8500_fg.c index b1bc893..d974acd 100644 --- a/drivers/power/ab8500_fg.c +++ b/drivers/power/ab8500_fg.c @@ -956,7 +956,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);