From patchwork Tue Jan 15 12:55:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1977731 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 7928BDF264 for ; Tue, 15 Jan 2013 13:05:13 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Tv66j-0007WU-3z; Tue, 15 Jan 2013 12:59:15 +0000 Received: from mail-wi0-f178.google.com ([209.85.212.178]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Tv64C-0006Ws-16 for linux-arm-kernel@lists.infradead.org; Tue, 15 Jan 2013 12:56:37 +0000 Received: by mail-wi0-f178.google.com with SMTP id hn3so58487wib.17 for ; Tue, 15 Jan 2013 04:56:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=Un7HihCk6d4UxoylhRoUOI+0Ny7AH1ShNBCNu9A14xI=; b=BH5Pv3fXnedLOT0MbDBs9yaKCDt/JFHx7DupsVeY2PeuOr+/1vFbjP7nSmrfaUmp1f bBoYuYj/v5poVjrB0v+/UhYVO1wTvFOIgvdJidOZe5CCqKjivvBKgYvAzulNgpvo7MD+ gB+PQchm+Yu5JpQDpb9cjWc9QdZ781ZKirrhv8TZRXNdaMMpNykLqYbjeUwoMNwJoF7U TtpdNxKSL9J+kB/nbY2XigviaOTCm5d+9EN79MLuih5t8WCB3ZddilBH8/Mhuc0bSZpy Q3z8AtaU2JFj5V/hNVvMOUECr0YYMw0upUZYNgz1USd4J62RCkhwaCrzxqqGPNHCREPE xXBA== X-Received: by 10.180.14.10 with SMTP id l10mr3569170wic.7.1358254594253; Tue, 15 Jan 2013 04:56:34 -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 eo10sm3672833wib.9.2013.01.15.04.56.32 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 15 Jan 2013 04:56:33 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 05/26] mfd: ab8500-gpadc: Change to mdelay for greater resolution Date: Tue, 15 Jan 2013 12:55:45 +0000 Message-Id: <1358254566-12419-6-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1358254566-12419-1-git-send-email-lee.jones@linaro.org> References: <1358254566-12419-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQm+RFye9/l1l99SGR3zv6bgsnbrGg6j28oWzDaHUb1Yw7IwVxkzg/aJcuHsI5hMAl2/+03C X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130115_075636_478466_5B1A2E11 X-CRM114-Status: GOOD ( 11.59 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.212.178 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Jonas Aaberg , Lee Jones , linus.walleij@stericsson.com, arnd@arndb.de, sameo@linux.intel.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Jonas Aaberg 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 Signed-off-by: Jonas Aaberg Reviewed-by: Bibek BASU Tested-by: Bibek BASU --- 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 */