Skip to content

Commit 80a7ed8

Browse files
juhosgralfbaechle
authored andcommitted
MIPS: ath79: sort case statements in ath79_detect_sys_type
Sort the case statements alphabetically in order to improve readability. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Acked-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com> Cc: linux-mips@linux-mips.org Cc: mcgrof@infradead.org Patchwork: https://patchwork.linux-mips.org/patch/3505/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 703327d commit 80a7ed8

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

‎arch/mips/ath79/setup.c‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -116,18 +116,6 @@ static void __init ath79_detect_sys_type(void)
116116
rev = id & AR724X_REV_ID_REVISION_MASK;
117117
break;
118118

119-
case REV_ID_MAJOR_AR9330:
120-
ath79_soc = ATH79_SOC_AR9330;
121-
chip = "9330";
122-
rev = id & AR933X_REV_ID_REVISION_MASK;
123-
break;
124-
125-
case REV_ID_MAJOR_AR9331:
126-
ath79_soc = ATH79_SOC_AR9331;
127-
chip = "9331";
128-
rev = id & AR933X_REV_ID_REVISION_MASK;
129-
break;
130-
131119
case REV_ID_MAJOR_AR913X:
132120
minor = id & AR913X_REV_ID_MINOR_MASK;
133121
rev = id >> AR913X_REV_ID_REVISION_SHIFT;
@@ -145,6 +133,18 @@ static void __init ath79_detect_sys_type(void)
145133
}
146134
break;
147135

136+
case REV_ID_MAJOR_AR9330:
137+
ath79_soc = ATH79_SOC_AR9330;
138+
chip = "9330";
139+
rev = id & AR933X_REV_ID_REVISION_MASK;
140+
break;
141+
142+
case REV_ID_MAJOR_AR9331:
143+
ath79_soc = ATH79_SOC_AR9331;
144+
chip = "9331";
145+
rev = id & AR933X_REV_ID_REVISION_MASK;
146+
break;
147+
148148
default:
149149
panic("ath79: unknown SoC, id:0x%08x", id);
150150
}

0 commit comments

Comments
 (0)