From patchwork Thu Mar 28 16:11:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 15748 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 A13DC23E10 for ; Thu, 28 Mar 2013 16:12:57 +0000 (UTC) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by fiordland.canonical.com (Postfix) with ESMTP id 50F68A18890 for ; Thu, 28 Mar 2013 16:12:57 +0000 (UTC) Received: by mail-ve0-f180.google.com with SMTP id c13so6198919vea.25 for ; Thu, 28 Mar 2013 09:12:56 -0700 (PDT) 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=b/MJThMBArLTNnocnEgV9X26on5XhCqApc3N6LPpN6Y=; b=gVmCEOyjlLyEtkqiyJrhuHybn0IqidHqmuVwY/KaWs1yFLj247H0l3D+Fd1hIshtZa hLWHLxnOaTC1ao1ESFGXH8awCGu1jRRflc/hecR57+haJqu4WNxmzLFB/EcMbQ/0Os5q JR1eEIAS0RT/M+AQ7gZ7wpUTUAo77/bmJgeek5TWjhYxFM4R1LND0f8Q9e5BJjBzqBfW hyEvWucPV/aNIHBPTV/bGTE4CPlPM3MiAJSW0qY9u6ruG2HhmpB59vUyJ8gn1aEZW9Ol UmzbQkcvsvzvABdXp/nlTbdBIoaDD2mBAueNl/vFb0r341wWl1ari91AWyFqQvpJ+tit SPhg== X-Received: by 10.52.31.103 with SMTP id z7mr23554718vdh.56.1364487176880; Thu, 28 Mar 2013 09:12:56 -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.59.4.204 with SMTP id cg12csp22445ved; Thu, 28 Mar 2013 09:12:53 -0700 (PDT) X-Received: by 10.180.103.65 with SMTP id fu1mr17465251wib.4.1364487168761; Thu, 28 Mar 2013 09:12:48 -0700 (PDT) Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]) by mx.google.com with ESMTPS id ky7si10094932wjb.212.2013.03.28.09.12.48 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Mar 2013 09:12:48 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c05::22a is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=2a00:1450:400c:c05::22a; Authentication-Results: mx.google.com; spf=neutral (google.com: 2a00:1450:400c:c05::22a 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-wi0-f170.google.com with SMTP id hm11so3565186wib.5 for ; Thu, 28 Mar 2013 09:12:48 -0700 (PDT) X-Received: by 10.194.92.231 with SMTP id cp7mr39357313wjb.19.1364487168384; Thu, 28 Mar 2013 09:12:48 -0700 (PDT) Received: from localhost.localdomain (cpc34-aztw25-2-0-cust250.18-1.cable.virginmedia.com. [86.16.136.251]) by mx.google.com with ESMTPS id o5sm16765926wix.3.2013.03.28.09.12.46 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Mar 2013 09:12:47 -0700 (PDT) From: Lee Jones To: linux-kernel@vger.kernel.org, broonie@opensource.wolfsonmicro.com Cc: Lee Jones Subject: [PATCH 28/33] regulator: ab8500: Set enable enable_time in regulator_desc Date: Thu, 28 Mar 2013 16:11:28 +0000 Message-Id: <1364487093-19551-29-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1364487093-19551-1-git-send-email-lee.jones@linaro.org> References: <1364487093-19551-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQnNJKbYPDNT6pyk/8k2WO4ipsGxH+deBRjSJ1CEF4iJynX6gOhMlCV9pq063uOEiO+Lxi2m Allow the regulator framework to directly access the time it takes any given regulator to settle. This saves time and code because without it we would have to implement a dedication function to read the value from elsewhere. Signed-off-by: Lee Jones --- drivers/regulator/ab8500.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/regulator/ab8500.c b/drivers/regulator/ab8500.c index 433cac4..8a9cd45 100644 --- a/drivers/regulator/ab8500.c +++ b/drivers/regulator/ab8500.c @@ -1106,6 +1106,7 @@ static struct ab8500_regulator_info .owner = THIS_MODULE, .n_voltages = 1, .volt_table = fixed_2000000_voltage, + .enable_time = 10000, }, .delay = 10000, .load_lp_uA = 1000, @@ -1371,6 +1372,7 @@ static struct ab8500_regulator_info .owner = THIS_MODULE, .n_voltages = 1, .volt_table = fixed_2000000_voltage, + .enable_time = 10000, }, .delay = 10000, .load_lp_uA = 1000, @@ -1668,6 +1670,7 @@ static struct ab8500_regulator_info .id = AB8540_LDO_TVOUT, .owner = THIS_MODULE, .n_voltages = 1, + .enable_time = 10000, }, .delay = 10000, .load_lp_uA = 1000,