Skip to contentSkip to conversation

ARM: tegra: Fix some whitespace oddities

PATCH Applied Thierry Reding 2 participants 3 messages Dec 6, 2013 – Dec 12, 2013 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ARM: tegra: Fix some whitespace oddities

Some of the powergate code uses unusual spacing around == and has a tab instead of a space before an opening parenthesis.

---
 arch/arm/mach-tegra/powergate.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-tegra/powergate.c +2 -2
index 3bddf9684efd..2c175c67e39f 100644
@@ -147,9 +147,9 @@ int tegra_powergate_remove_clamping(int id)
 	 * Tegra 2 has a bug where PCIE and VDE clamping masks are
 	 * swapped relatively to the partition ids
 	 */
-	if (id ==  TEGRA_POWERGATE_VDEC)
+	if (id == TEGRA_POWERGATE_VDEC)
 		mask = (1 << TEGRA_POWERGATE_PCIE);
-	else if	(id == TEGRA_POWERGATE_PCIE)
+	else if (id == TEGRA_POWERGATE_PCIE)
 		mask = (1 << TEGRA_POWERGATE_VDEC);
 	else
 		mask = (1 << id);
Signature · 1 line
1.8.4.2

A message that is not in the archive (sent off-list or not yet received): 1386343633-2137-1-git-send-email-treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org

#2 lore raw

PATCH 2/2 ARM: tegra: Rename cpu0 powergate to crail

This matches the name of the powergate as listed in the TRM.

---
 arch/arm/mach-tegra/powergate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-tegra/powergate.c +1 -1
index 2c175c67e39f..426a4064e561 100644
@@ -259,7 +259,7 @@ static const char * const powergate_name_t30[] = {
 };
 
 static const char * const powergate_name_t114[] = {
-	[TEGRA_POWERGATE_CPU]	= "cpu0",
+	[TEGRA_POWERGATE_CPU]	= "crail",
 	[TEGRA_POWERGATE_3D]	= "3d",
 	[TEGRA_POWERGATE_VENC]	= "venc",
 	[TEGRA_POWERGATE_VDEC]	= "vdec",
Signature · 1 line
1.8.4.2