From patchwork Thu Mar 31 09:21:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 64745 Delivered-To: patches@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp42186lbc; Thu, 31 Mar 2016 02:21:48 -0700 (PDT) X-Received: by 10.112.169.105 with SMTP id ad9mr6043550lbc.135.1459416104877; Thu, 31 Mar 2016 02:21:44 -0700 (PDT) Return-Path: Received: from mail-lb0-x22e.google.com (mail-lb0-x22e.google.com. [2a00:1450:4010:c04::22e]) by mx.google.com with ESMTPS id m10si4829018lbs.183.2016.03.31.02.21.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Mar 2016 02:21:44 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c04::22e as permitted sender) client-ip=2a00:1450:4010:c04::22e; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c04::22e as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-lb0-x22e.google.com with SMTP id vo2so48574387lbb.1 for ; Thu, 31 Mar 2016 02:21:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=P6opZ1NnImmnBGB+C0nYh/aZBJS5W9jg6gwa5lXgY4w=; b=dJ8mEPk/HQs69/F9a0LCj54WtQfSUvfwZqJ+nESb+za2ekw5vqOASv8krdVV4Hb38v g6tazvpDMd+lu0s6CscUw9Xh2FSjvyOj/Y3TlJQhnGeUWtSzpF91YqMLpKzMv5M8UFxf 7TOrMRMFcPUr3IFh1zQhaLXkL3OJIIq3eudPA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=P6opZ1NnImmnBGB+C0nYh/aZBJS5W9jg6gwa5lXgY4w=; b=WYtzN+A2hXIlXzoU7q1abUSJLxMML7Z8oCGGmUX7jIKGsTUIaukahagAJzJAxmEh2y lU0C4RPzKZr21WdOzRMcxRPblCbjhHc3w72qZDOZfZg91jSqQNgJ9MUoPfpFMlqtbRiK TyP20zwSuuDwjgyAdR4+WtxOgsbQHydsKy+2xB4JZTCNF9EIP3nslDu3We4iNB/je5bD 7O2QdzRPGdSOVzk0S8BOqO8SNL4aB8VrdqY3328YdEOEGhWiGmzMobcuVvXptYarar0/ XEcuuyirztafYe/HRvRnsCCpjy0ofjG8JM3+m2Ie3SzUFPaRg5hk7OYSRUYQP09qaMLI ZN2Q== X-Gm-Message-State: AD7BkJI/zj/uLddZRUKYDZrvtmKMQzGAzurwXwYdPI4JEVCTaLKS8O0bmUNl24gIrEApYuk+QEw= X-Received: by 10.112.97.162 with SMTP id eb2mr913162lbb.132.1459416104742; Thu, 31 Mar 2016 02:21:44 -0700 (PDT) Return-Path: Received: from uffe-Latitude-E6430s.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id p141sm1242805lfe.40.2016.03.31.02.21.42 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 31 Mar 2016 02:21:43 -0700 (PDT) From: Ulf Hansson To: "Rafael J. Wysocki" , Kevin Hilman , Ulf Hansson , linux-pm@vger.kernel.org Cc: Len Brown , Pavel Machek , Geert Uytterhoeven , Lina Iyer , Axel Haslam , Marek Szyprowski , Jon Hunter Subject: [PATCH 2/3] PM / Domains: Rename pm_genpd_runtime_suspend|resume() Date: Thu, 31 Mar 2016 11:21:26 +0200 Message-Id: <1459416087-23519-3-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1459416087-23519-1-git-send-email-ulf.hansson@linaro.org> References: <1459416087-23519-1-git-send-email-ulf.hansson@linaro.org> Follow genpd's rule for names of static functions, by renaming pm_genpd_runtime_suspend|resume() to genpd_runtime_suspend|resume(). Signed-off-by: Ulf Hansson --- drivers/base/power/domain.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) -- 1.9.1 diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index c62687d..75b994a 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -372,14 +372,14 @@ static void genpd_power_off_work_fn(struct work_struct *work) } /** - * pm_genpd_runtime_suspend - Suspend a device belonging to I/O PM domain. + * genpd_runtime_suspend - Suspend a device belonging to I/O PM domain. * @dev: Device to suspend. * * Carry out a runtime suspend of a device under the assumption that its * pm_domain field points to the domain member of an object of type * struct generic_pm_domain representing a PM domain consisting of I/O devices. */ -static int pm_genpd_runtime_suspend(struct device *dev) +static int genpd_runtime_suspend(struct device *dev) { struct generic_pm_domain *genpd; bool (*suspend_ok)(struct device *__dev); @@ -446,14 +446,14 @@ static int pm_genpd_runtime_suspend(struct device *dev) } /** - * pm_genpd_runtime_resume - Resume a device belonging to I/O PM domain. + * genpd_runtime_resume - Resume a device belonging to I/O PM domain. * @dev: Device to resume. * * Carry out a runtime resume of a device under the assumption that its * pm_domain field points to the domain member of an object of type * struct generic_pm_domain representing a PM domain consisting of I/O devices. */ -static int pm_genpd_runtime_resume(struct device *dev) +static int genpd_runtime_resume(struct device *dev) { struct generic_pm_domain *genpd; struct gpd_timing_data *td = &dev_gpd_data(dev)->td; @@ -1498,8 +1498,8 @@ void pm_genpd_init(struct generic_pm_domain *genpd, genpd->device_count = 0; genpd->max_off_time_ns = -1; genpd->max_off_time_changed = true; - genpd->domain.ops.runtime_suspend = pm_genpd_runtime_suspend; - genpd->domain.ops.runtime_resume = pm_genpd_runtime_resume; + genpd->domain.ops.runtime_suspend = genpd_runtime_suspend; + genpd->domain.ops.runtime_resume = genpd_runtime_resume; genpd->domain.ops.prepare = pm_genpd_prepare; genpd->domain.ops.suspend = pm_genpd_suspend; genpd->domain.ops.suspend_late = pm_genpd_suspend_late;