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: 14054 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 8307D23E2E for ; Tue, 15 Jan 2013 12:56:36 +0000 (UTC) Received: from mail-vb0-f42.google.com (mail-vb0-f42.google.com [209.85.212.42]) by fiordland.canonical.com (Postfix) with ESMTP id 4125AA1931C for ; Tue, 15 Jan 2013 12:56:36 +0000 (UTC) Received: by mail-vb0-f42.google.com with SMTP id fa15so56027vbb.15 for ; Tue, 15 Jan 2013 04:56:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=Un7HihCk6d4UxoylhRoUOI+0Ny7AH1ShNBCNu9A14xI=; b=djqZ4yHw9EMMJXSSZYWpu4kmJtib+ItPqucxAJBqqUa7Z25lLYf7BzDfoM84QETmTD i/OCBksuVWSmiDG/th5I5i73ZvIAELVB+GgSXQA0yr2ig2GHNVjWGfzAh2oScotmjAsE wW1LjiggjHbhTVFqOCWrIXPWHCl3khqydsimOg5ZlsZGpo+5/6SgAdXmBBP35yBidJrY 9dlIXYo4s5w7a3esnbF/ahDAT4aGC/d6N/59dr0qOM2mumZ+mxoLC9RLQICQ7PLxqPrC RixOggBHEzRgpeO0iatvcn/+Ym1ZyuVmcDtgDLU8ZDshYVFynhXgGFRcVc0MegHfp/ja lXkQ== X-Received: by 10.220.157.9 with SMTP id z9mr105716767vcw.45.1358254595713; Tue, 15 Jan 2013 04:56:35 -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.58.145.101 with SMTP id st5csp110592veb; Tue, 15 Jan 2013 04:56:35 -0800 (PST) X-Received: by 10.180.92.100 with SMTP id cl4mr3519926wib.24.1358254594666; Tue, 15 Jan 2013 04:56:34 -0800 (PST) Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by mx.google.com with ESMTPS id g4si27441396wjy.4.2013.01.15.04.56.34 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 15 Jan 2013 04:56:34 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.46 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.46; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.46 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-wg0-f46.google.com with SMTP id dr13so41496wgb.1 for ; Tue, 15 Jan 2013 04:56:34 -0800 (PST) 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 Cc: arnd@arndb.de, linus.walleij@stericsson.com, sameo@linux.intel.com, Jonas Aaberg , Lee Jones 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: ALoCoQm1EWa60utK8bAxUwUr3789X4Aw0Js5nTjjOtnsny1YvhjgY9sScWTpqs37cIENAXfOj1AL 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 */