From patchwork Thu Mar 21 15:59:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 2315141 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 11284400E6 for ; Thu, 21 Mar 2013 16:37:01 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UIiQX-0003Ed-W7; Thu, 21 Mar 2013 16:33:18 +0000 Received: from mail-we0-x22e.google.com ([2a00:1450:400c:c03::22e]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UIhvj-0001UZ-6J for linux-arm-kernel@lists.infradead.org; Thu, 21 Mar 2013 16:01:29 +0000 Received: by mail-we0-f174.google.com with SMTP id r6so2474055wey.19 for ; Thu, 21 Mar 2013 09:01:22 -0700 (PDT) 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=rr/sGT7S0jXiWGf6D2pB9m0WxcW/0ecJmzfJX8rKRz4=; b=p167nLK6xUdY5ceHl8lmNOj4s87xwZn1Aehivbod4fnGJLKfGrVwvU08d5dsm9+KVv 8LCnlJFNIergGwlAco39h3MjSzznYQTvdeX6ulyY6MP0RCh2GSBBvBvEM8j+PxzNrEwB K2wX0qqf0aYz1q8ncAwJBLFhQKMCT1QtEJ+vLZ/Uf5A2SvNklvse6Gee7UDk9ae+9yfv 8yUOrTFdu1SYoyS7W8iWKk8IO73JLgR0fJ5HfMLLKtRc6YiS7IWFCONdmB8K9QAF+lhb P1rk/JWyGba14yOw88028bboLpl6fdd/gKiKBNcdsLyoXWlFWlbaayq1m1OgD6NUhg+m YZNA== X-Received: by 10.194.119.68 with SMTP id ks4mr18323738wjb.3.1363881682502; Thu, 21 Mar 2013 09:01:22 -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 h10sm6110847wic.8.2013.03.21.09.01.20 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Mar 2013 09:01:21 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, broonie@opensource.wolfsonmicro.com Subject: [PATCH 40/46] regulator: ab8500: Set enable enable_time in regulator_desc Date: Thu, 21 Mar 2013 15:59:37 +0000 Message-Id: <1363881583-15234-41-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1363881583-15234-1-git-send-email-lee.jones@linaro.org> References: <1363881583-15234-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQm6Zfm/zl8Sn3gPKsAixeX5Z2E8cZkoIOoWGJfrSTei90q6mGJq+7ZuXvnoh4x2U/gOj1/2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130321_120127_541752_DEA28AFF X-CRM114-Status: GOOD ( 10.77 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Lee Jones , linus.walleij@stericsson.com, arnd@arndb.de X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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 e6b77a7..324444e 100644 --- a/drivers/regulator/ab8500.c +++ b/drivers/regulator/ab8500.c @@ -1098,6 +1098,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, @@ -1363,6 +1364,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, @@ -1660,6 +1662,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,