From patchwork Tue Jul 16 09:43:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 169039 Delivered-To: patches@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp606416ilk; Tue, 16 Jul 2019 02:43:25 -0700 (PDT) X-Received: by 2002:ac2:514b:: with SMTP id q11mr14434856lfd.33.1563270205608; Tue, 16 Jul 2019 02:43:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563270205; cv=none; d=google.com; s=arc-20160816; b=UmjjUUdQ9VJsvh+vJoa7tSRUMnzQc7DuXxlheBU7u3Y1HPyNH5QThLBOhwInrFpVFl npcGLdOzv8PFdyhB4u4nAyIArtSREL8W9QPZriJRplxWWf4Y2WQ6Z/KChhFRfiALaFfe 5jICvPmg6VeDc15QwLiQHTAn8fLWCcn0Mcbe8lOs10SWiplOjuCVs0r6567e3xaUSPm4 psK//4hegNv8d6lTCMq2OaW2bWeXLnvOuqViKHYbtMxtUQJeIR5SYOlPh0+qbQZZIf3L wTjNFXpyK7UWrZq8q44JocXS7m9WPQNU96eJwPeZGu8gJAV7Gt7KaTQQLdAGL7vGCiSd EfVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=7PhWAy1xqNZO8fw32oFUdA29pot6GzvOYCImhF+mYj8=; b=FN8Il29pwKzYy5WFGpmiDCM80/OHV5aQRJzcU4YC5adryMeRgm8Tgg4evHtjeF/o8e +TsZbocWHguMa9WTyo9zode7Ew33AF6sXWeG8lOzADVHgepK6JBVkKOlYJC9M6UE55fH JirzHdxvPWqIPdiWej5ndCP1AgbHhhGq66GHzLkwjyEzwgSH+RkM+54DsstgfkBG9fgy DEqVMf8P6E+N57aAM+lClUdG8hQU1nc/xWrVOr65UQlxpMMqFt01Gy53VotEr28mPVlm ++Ida2TQVrl1NMSnixLrtNROFsUtO2Sd6dClF3X/pgMhEzSYPxXwXm5BcqxbPc367xRY 4XWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a0RSKlkP; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id x15sor5006058lfe.63.2019.07.16.02.43.25 for (Google Transport Security); Tue, 16 Jul 2019 02:43:25 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a0RSKlkP; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=7PhWAy1xqNZO8fw32oFUdA29pot6GzvOYCImhF+mYj8=; b=a0RSKlkPCXLdsQ1UczLSy7igNfNczG7sDZn7zBp6oy371O41PqUW1uRHEsiyFgjc4I AmeahOcFSbblE6AvJDAfOHA6fHQl66SAFU+kvYGcFeuOJdCLrwHXkTcEO/2J2DAvACff +VDpnreKOet6A8AMNjNbV7FZ1/Z/sOumU0W1ejY0f9ZFVSpJYP2jPUGKy+hTHa4XLqpi kcrfVfunB2ZWQYuFr+V6mjD7OrlyAxfj5uMpPFn7Fv8RRm3iUTtPvNMl7mjPVSUdOIg6 k+MgdRF9afAbKUiwGSVeWYEY23EOvv3miGi+ThpjcEsnS36OnG362HLBNbx76KIpDZiQ Dycw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=7PhWAy1xqNZO8fw32oFUdA29pot6GzvOYCImhF+mYj8=; b=g4QoPvW2iQAhARhbo95uS5H+wv0RLJxVBNnxv5URpSm4QERsjzWpcSPb44NdDqjR8e rl7ycCXOBGC16C8yWp2I97C/K792gjeBki5j56nYPMzMXzc+PCx7EtTfiITgVcE89GqY 9IbbuLjBHlQ40Sx718eAQFHKGcuTYGF8kOsnKu4+jqziTW5thfJGeJTI3fCp2gfHu7Mt GinWd/b/MKwTXY5k4RyBdKIEJXfAaCWQN75RHaNAm+1OZ/1QQm0HMG+qxHewsvry35Wj Juq/2y+1XtNcZ3pmTP22ek/BSU6tUUB8Pp61SOklb9H+LsAAukpEJVQYYJjKoToMXkqJ 0RPQ== X-Gm-Message-State: APjAAAWIc7/ikcMu6YPR9AKLdMzAsUdZh3vEUK3tzwavDGhv36UMRczT wMUOs+SZ1AC/dlntgFqQ7bHE6q5A0adlKw== X-Google-Smtp-Source: APXvYqzYWb7BZlYhV8K+iZrKyJLRi/FJcVjyUAUWrirtRASW3h4stlDb5Ff8/E+tvKdILfnNJxW7bQ== X-Received: by 2002:a19:914c:: with SMTP id y12mr14210793lfj.108.1563270204967; Tue, 16 Jul 2019 02:43:24 -0700 (PDT) Return-Path: Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id l24sm3654087lji.78.2019.07.16.02.43.23 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 16 Jul 2019 02:43:24 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , linux-pm@vger.kernel.org Cc: Ulf Hansson , Viresh Kumar , Kevin Hilman Subject: [PATCH] PM / Domains: Align in-parameter names for some genpd functions Date: Tue, 16 Jul 2019 11:43:20 +0200 Message-Id: <20190716094320.20091-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 Align in-parameter names for the declarations of pm_genpd_add| remove_subdomain() and of_genpd_add_subdomain() according to their implementations, as to improve consistency. Signed-off-by: Ulf Hansson --- include/linux/pm_domain.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) -- 2.17.1 diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index 91d9bf497071..baf02ff91a31 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -197,9 +197,9 @@ static inline struct generic_pm_domain_data *dev_gpd_data(struct device *dev) int pm_genpd_add_device(struct generic_pm_domain *genpd, struct device *dev); int pm_genpd_remove_device(struct device *dev); int pm_genpd_add_subdomain(struct generic_pm_domain *genpd, - struct generic_pm_domain *new_subdomain); + struct generic_pm_domain *subdomain); int pm_genpd_remove_subdomain(struct generic_pm_domain *genpd, - struct generic_pm_domain *target); + struct generic_pm_domain *subdomain); int pm_genpd_init(struct generic_pm_domain *genpd, struct dev_power_governor *gov, bool is_off); int pm_genpd_remove(struct generic_pm_domain *genpd); @@ -226,12 +226,12 @@ static inline int pm_genpd_remove_device(struct device *dev) return -ENOSYS; } static inline int pm_genpd_add_subdomain(struct generic_pm_domain *genpd, - struct generic_pm_domain *new_sd) + struct generic_pm_domain *subdomain) { return -ENOSYS; } static inline int pm_genpd_remove_subdomain(struct generic_pm_domain *genpd, - struct generic_pm_domain *target) + struct generic_pm_domain *subdomain) { return -ENOSYS; } @@ -282,8 +282,8 @@ int of_genpd_add_provider_onecell(struct device_node *np, struct genpd_onecell_data *data); void of_genpd_del_provider(struct device_node *np); int of_genpd_add_device(struct of_phandle_args *args, struct device *dev); -int of_genpd_add_subdomain(struct of_phandle_args *parent, - struct of_phandle_args *new_subdomain); +int of_genpd_add_subdomain(struct of_phandle_args *parent_spec, + struct of_phandle_args *subdomain_spec); struct generic_pm_domain *of_genpd_remove_last(struct device_node *np); int of_genpd_parse_idle_states(struct device_node *dn, struct genpd_power_state **states, int *n); @@ -316,8 +316,8 @@ static inline int of_genpd_add_device(struct of_phandle_args *args, return -ENODEV; } -static inline int of_genpd_add_subdomain(struct of_phandle_args *parent, - struct of_phandle_args *new_subdomain) +static inline int of_genpd_add_subdomain(struct of_phandle_args *parent_spec, + struct of_phandle_args *subdomain_spec) { return -ENODEV; }