Skip to content

Commit fe13471

Browse files
Benoit Coussontmlind
authored andcommitted
OMAP4: hwmod data: Fix alignment and end of line in structurefields
In order to be fully aligned with the Python generator output, change a couple of fields. - Add tab in class structures to align attributes - Add a comma at the end of the following line to simplify the generation by having always the same eol: ".pre_shutdown = &omap2_wd_timer_disable," - Add a blank line before the first entry of the omap44xx_hwmods array. Signed-off-by: Benoit Cousson <b-cousson@ti.com> Cc: Paul Walmsley <paul@pwsan.com> Tested-by: G, Manjunath Kondaiah <manjugk@ti.com> Acked-by: Kevin Hilman <khilman@deeprootsystems.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent d7cf5f3 commit fe13471

1 file changed

Lines changed: 22 additions & 21 deletions

File tree

‎arch/arm/mach-omap2/omap_hwmod_44xx_data.c‎

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static struct omap_hwmod omap44xx_mpu_private_hwmod;
6666
* instance(s): dmm
6767
*/
6868
static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
69-
.name = "dmm",
69+
.name = "dmm",
7070
};
7171

7272
/* dmm interface data */
@@ -121,7 +121,7 @@ static struct omap_hwmod omap44xx_dmm_hwmod = {
121121
* instance(s): emif_fw
122122
*/
123123
static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
124-
.name = "emif_fw",
124+
.name = "emif_fw",
125125
};
126126

127127
/* emif_fw interface data */
@@ -170,7 +170,7 @@ static struct omap_hwmod omap44xx_emif_fw_hwmod = {
170170
* instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
171171
*/
172172
static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
173-
.name = "l3",
173+
.name = "l3",
174174
};
175175

176176
/* l3_instr interface data */
@@ -347,7 +347,7 @@ static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
347347
* instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
348348
*/
349349
static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
350-
.name = "l4",
350+
.name = "l4",
351351
};
352352

353353
/* l4_abe interface data */
@@ -461,7 +461,7 @@ static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
461461
* instance(s): mpu_private
462462
*/
463463
static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
464-
.name = "mpu_bus",
464+
.name = "mpu_bus",
465465
};
466466

467467
/* mpu_private interface data */
@@ -667,7 +667,7 @@ static struct omap_hwmod omap44xx_dma_system_hwmod = {
667667
*/
668668

669669
static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
670-
.name = "dsp",
670+
.name = "dsp",
671671
};
672672

673673
/* dsp */
@@ -764,15 +764,15 @@ static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
764764
};
765765

766766
static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
767-
.name = "gpio",
768-
.sysc = &omap44xx_gpio_sysc,
769-
.rev = 2,
767+
.name = "gpio",
768+
.sysc = &omap44xx_gpio_sysc,
769+
.rev = 2,
770770
};
771771

772772
/* gpio dev_attr */
773773
static struct omap_gpio_dev_attr gpio_dev_attr = {
774-
.bank_width = 32,
775-
.dbck_flag = true,
774+
.bank_width = 32,
775+
.dbck_flag = true,
776776
};
777777

778778
/* gpio1 */
@@ -1109,8 +1109,8 @@ static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
11091109
};
11101110

11111111
static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
1112-
.name = "i2c",
1113-
.sysc = &omap44xx_i2c_sysc,
1112+
.name = "i2c",
1113+
.sysc = &omap44xx_i2c_sysc,
11141114
};
11151115

11161116
/* i2c1 */
@@ -1331,7 +1331,7 @@ static struct omap_hwmod omap44xx_i2c4_hwmod = {
13311331
*/
13321332

13331333
static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
1334-
.name = "iva",
1334+
.name = "iva",
13351335
};
13361336

13371337
/* iva */
@@ -1440,7 +1440,7 @@ static struct omap_hwmod omap44xx_iva_hwmod = {
14401440
*/
14411441

14421442
static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
1443-
.name = "mpu",
1443+
.name = "mpu",
14441444
};
14451445

14461446
/* mpu */
@@ -1495,9 +1495,9 @@ static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
14951495
};
14961496

14971497
static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
1498-
.name = "smartreflex",
1499-
.sysc = &omap44xx_smartreflex_sysc,
1500-
.rev = 2,
1498+
.name = "smartreflex",
1499+
.sysc = &omap44xx_smartreflex_sysc,
1500+
.rev = 2,
15011501
};
15021502

15031503
/* smartreflex_core */
@@ -1656,8 +1656,8 @@ static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
16561656
};
16571657

16581658
static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
1659-
.name = "uart",
1660-
.sysc = &omap44xx_uart_sysc,
1659+
.name = "uart",
1660+
.sysc = &omap44xx_uart_sysc,
16611661
};
16621662

16631663
/* uart1 */
@@ -1889,7 +1889,7 @@ static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
18891889
static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
18901890
.name = "wd_timer",
18911891
.sysc = &omap44xx_wd_timer_sysc,
1892-
.pre_shutdown = &omap2_wd_timer_disable
1892+
.pre_shutdown = &omap2_wd_timer_disable,
18931893
};
18941894

18951895
/* wd_timer2 */
@@ -2002,6 +2002,7 @@ static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
20022002
};
20032003

20042004
static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
2005+
20052006
/* dmm class */
20062007
&omap44xx_dmm_hwmod,
20072008

0 commit comments

Comments
 (0)