Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753421AbbKLEjI (ORCPT ); Wed, 11 Nov 2015 23:39:08 -0500 Received: from mailout4.w1.samsung.com ([210.118.77.14]:23204 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753203AbbKLEjF (ORCPT ); Wed, 11 Nov 2015 23:39:05 -0500 X-AuditID: cbfec7f5-f794b6d000001495-63-564417e732fe Subject: Re: [PATCH v4 8/9] ARM: EXYNOS: rearrange static and non-static functions of PMU driver To: Pankaj Dubey , linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <1447155784-12667-1-git-send-email-pankaj.dubey@samsung.com> <1447155784-12667-9-git-send-email-pankaj.dubey@samsung.com> Cc: kgene.kim@samsung.com, thomas.ab@samsung.com, amitdanielk@gmail.com, olof@lixom.net, khilman@linaro.org, arnd@arndb.de From: Krzysztof Kozlowski Message-id: <564417E6.8070905@samsung.com> Date: Thu, 12 Nov 2015 13:39:02 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-version: 1.0 In-reply-to: <1447155784-12667-9-git-send-email-pankaj.dubey@samsung.com> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrKLMWRmVeSWpSXmKPExsVy+t/xq7rPxV3CDO49kbT4uPolm8XfScfY LV6/MLToXXCVzeLr4RWMFpseX2O1uLxrDpvFjPP7mCxOXf/MZrFo6xd2i45ljA7cHr9/TWL0 2DnrLrvHnWt72Dw2L6n3uHKiidWjb8sqRo/Pm+QC2KO4bFJSczLLUov07RK4Mt49vsFasJW/ 4vP8RrYGxlU8XYycHBICJhI7WxcyQ9hiEhfurWfrYuTiEBJYyigx7eUrRpCEkMAXRomPF2W6 GDk4hAWSJPb1VYDUiAhMYZS42LOMEaKhnVHicM9MNpAGZoEaidOfroA1swkYS2xevgQsziug JXG+vZUVxGYRUJU4vnExmC0qECExcUIDK0SNoMSPyfdYQGxOAU+JRUc/soAsZhbQk7h/UQti vLzE5jVvmScwCsxC0jELoWoWkqoFjMyrGEVTS5MLipPSc430ihNzi0vz0vWS83M3MUIi4+sO xqXHrA4xCnAwKvHwTpjpHCbEmlhWXJl7iFGCg1lJhDdgHlCINyWxsiq1KD++qDQntfgQozQH i5I478xd70OEBNITS1KzU1MLUotgskwcnFINjDe3dDPeX34zd/WMNl7ThAcHzpU3/a5Z0HM3 8OpOG4mOefuqF7pZVE78x9G6L/+c3Oreov0vi41jomeeqZow/+IUzhlbulc9UEpbmtTy1uK/ xcUWrZnnnv0S4X4lIXSpy+bYOam0Sf/E55SLqKUfqqoqm/LztnhkLJPRtqzJqWH35CsXdZ45 3KzEUpyRaKjFXFScCADNmv3yiAIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2147 Lines: 76 On 10.11.2015 20:43, Pankaj Dubey wrote: > This patch moves exynos_sys_powerdown_conf function above all > static functions. Please (always) describe the reason, the answer to "why?". In this case I know why, but other reviewers may not and other people grepping through history definitely won't know. Best regards, Krzysztof > > Signed-off-by: Pankaj Dubey > --- > arch/arm/mach-exynos/pmu.c | 34 +++++++++++++++++----------------- > 1 file changed, 17 insertions(+), 17 deletions(-) > > diff --git a/arch/arm/mach-exynos/pmu.c b/arch/arm/mach-exynos/pmu.c > index e01bdf1..f300ac9 100644 > --- a/arch/arm/mach-exynos/pmu.c > +++ b/arch/arm/mach-exynos/pmu.c > @@ -39,23 +39,6 @@ u32 pmu_raw_readl(u32 offset) > return readl_relaxed(pmu_base_addr + offset); > } > > -static void exynos_power_off(void) > -{ > - unsigned int tmp; > - > - pr_info("Power down.\n"); > - tmp = pmu_raw_readl(EXYNOS_PS_HOLD_CONTROL); > - tmp ^= (1 << 8); > - pmu_raw_writel(tmp, EXYNOS_PS_HOLD_CONTROL); > - > - /* Wait a little so we don't give a false warning below */ > - mdelay(100); > - > - pr_err("Power down failed, please power off system manually.\n"); > - while (1) > - ; > -} > - > void exynos_sys_powerdown_conf(enum sys_powerdown mode) > { > unsigned int i; > @@ -85,6 +68,23 @@ void exynos_sys_powerdown_conf(enum sys_powerdown mode) > } > } > > +static void exynos_power_off(void) > +{ > + unsigned int tmp; > + > + pr_info("Power down.\n"); > + tmp = pmu_raw_readl(EXYNOS_PS_HOLD_CONTROL); > + tmp ^= (1 << 8); > + pmu_raw_writel(tmp, EXYNOS_PS_HOLD_CONTROL); > + > + /* Wait a little so we don't give a false warning below */ > + mdelay(100); > + > + pr_err("Power down failed, please power off system manually.\n"); > + while (1) > + ; > +} > + > static int pmu_restart_notify(struct notifier_block *this, > unsigned long code, void *unused) > { > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/