From patchwork Wed Feb 6 10:54:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 14629 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 719F02423C for ; Wed, 6 Feb 2013 11:02:15 +0000 (UTC) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by fiordland.canonical.com (Postfix) with ESMTP id 09B04A187B7 for ; Wed, 6 Feb 2013 11:02:14 +0000 (UTC) Received: by mail-vb0-f54.google.com with SMTP id l1so743691vba.27 for ; Wed, 06 Feb 2013 03:02:14 -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=1fWUFLfB20OURkhJHbJrfoFWxZP5HgF9IWed4wAN8Ho=; b=NNuaFNuf/BlR031IlNtanQ40F6Wa6vSwoeFYV3x1JZl0TWu9SfK5e0LuzyEdCM2vFU yizG19qGKWym1ol1REbqB5K4cGWO5KFonlgUgxKoWuCm3BVgDAmlwTZWrl3tSup4Fmjj FZIbCmHgQpgZCBMTlfIA4JxaXtgaZ0vGQLluCqHVyRgUt/ZV2Az4xSlXMK/ngRl3BD8S V/NieIGsn1oD12eeoHqPpZhMoZ5+CF1a5mVzooAlZBPhY95RPUzgxCEVTNCbgcuMR5Mc OiyxM2mTs/5AxRVVrVkCGSPkz8ZFRgabtkGWfOc1A2dMuF0S7S8to2/XGRKnh9NsINEp JsAQ== X-Received: by 10.220.151.141 with SMTP id c13mr32134148vcw.64.1360148534562; Wed, 06 Feb 2013 03:02:14 -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.252.8 with SMTP id zo8csp13299vec; Wed, 6 Feb 2013 03:02:09 -0800 (PST) X-Received: by 10.180.93.40 with SMTP id cr8mr4016987wib.15.1360148124996; Wed, 06 Feb 2013 02:55:24 -0800 (PST) Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by mx.google.com with ESMTPS id vm1si8554455wjc.91.2013.02.06.02.55.24 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 06 Feb 2013 02:55:24 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.177 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.177; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.177 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-f177.google.com with SMTP id hm14so1415288wib.16 for ; Wed, 06 Feb 2013 02:55:24 -0800 (PST) X-Received: by 10.194.85.234 with SMTP id k10mr48781442wjz.53.1360148122203; Wed, 06 Feb 2013 02:55:22 -0800 (PST) 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 be1sm2406649wib.10.2013.02.06.02.55.21 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 06 Feb 2013 02:55:21 -0800 (PST) From: Lee Jones To: linux-kernel@vger.kernel.org Cc: broonie@opensource.wolfsonmicro.com, linus.walleij@linaro.org, Lee Jones Subject: [PATCH 46/49] regulator: ab8500: Set enable enable_time in regulator_desc Date: Wed, 6 Feb 2013 10:54:08 +0000 Message-Id: <1360148051-7560-47-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1360148051-7560-1-git-send-email-lee.jones@linaro.org> References: <1360148051-7560-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQl88gDlLZ9Yy4HaB39qmz2jEd93VFf0SykCiVNdWHXFr+90qz1pc9bA7aQ6CR4FYiGd2Vt9 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 5ddeff4..791a442 100644 --- a/drivers/regulator/ab8500.c +++ b/drivers/regulator/ab8500.c @@ -1097,6 +1097,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, @@ -1361,6 +1362,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, @@ -1658,6 +1660,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,