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: 15514 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 71A6823E14 for ; Thu, 21 Mar 2013 16:01:26 +0000 (UTC) Received: from mail-vb0-f53.google.com (mail-vb0-f53.google.com [209.85.212.53]) by fiordland.canonical.com (Postfix) with ESMTP id 1C29FA197A2 for ; Thu, 21 Mar 2013 16:01:26 +0000 (UTC) Received: by mail-vb0-f53.google.com with SMTP id fj18so2027433vbb.12 for ; Thu, 21 Mar 2013 09:01:25 -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=rr/sGT7S0jXiWGf6D2pB9m0WxcW/0ecJmzfJX8rKRz4=; b=eiOLJXKe9wOi0lkhhivOjRJRw2XbolGlCvcorX4ZvJBJrN28HWRDMISK2YD0iYgkvs TzCHgaY4EySXVxJzwM3zE/fplYc4FF9/JbZLkiO07Jdzoec0jIqNmaY3s1qluwZRkutv rGFfFHompzg0dGZlMCzNb4MOPl3j016D0opXwBl1Fb1iMmIN880h8itAD2Y0TLHsXZIw utz+hbZQQk9cwmiWAAoJvv1LSBAgc+7n4nFiOzd3yLR65TsOmhZm3GXjtJwQq+MysEfV YD2mJAkNfuSmzu0Okd+yOje0CXBwnNCApeSC1xxFC7P7EG9SBWwgmlLICVZL3D6F4+u+ WMHw== X-Received: by 10.58.210.200 with SMTP id mw8mr14264582vec.32.1363881685600; Thu, 21 Mar 2013 09:01:25 -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.58.233.198 with SMTP id ty6csp66834vec; Thu, 21 Mar 2013 09:01:24 -0700 (PDT) X-Received: by 10.194.11.70 with SMTP id o6mr18286918wjb.29.1363881683591; Thu, 21 Mar 2013 09:01:23 -0700 (PDT) Received: from mail-we0-x234.google.com ([2a00:1450:400c:c03::234]) by mx.google.com with ESMTPS id fa6si2631568wjd.38.2013.03.21.09.01.23 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Mar 2013 09:01:23 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c03::234 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=2a00:1450:400c:c03::234; Authentication-Results: mx.google.com; spf=neutral (google.com: 2a00:1450:400c:c03::234 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-we0-f180.google.com with SMTP id k14so2407717wer.39 for ; Thu, 21 Mar 2013 09:01:23 -0700 (PDT) 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 Cc: arnd@arndb.de, linus.walleij@stericsson.com, Lee Jones 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: ALoCoQl+8TrkrfmTKbXBI2GYoAw+BVvZrWqBw73aJ4QD6QxMp+zxExD9BTquFspvx7XglTKeBbjT 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,