Skip to content

Commit

Permalink
OMAP4: hwmod data: Fix alignment and end of line in structurefields
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Benoit Cousson authored and Tony Lindgren committed Dec 24, 2010
1 parent d7cf5f3 commit fe13471
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions arch/arm/mach-omap2/omap_hwmod_44xx_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static struct omap_hwmod omap44xx_mpu_private_hwmod;
* instance(s): dmm
*/
static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
.name = "dmm",
.name = "dmm",
};

/* dmm interface data */
Expand Down Expand Up @@ -121,7 +121,7 @@ static struct omap_hwmod omap44xx_dmm_hwmod = {
* instance(s): emif_fw
*/
static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
.name = "emif_fw",
.name = "emif_fw",
};

/* emif_fw interface data */
Expand Down Expand Up @@ -170,7 +170,7 @@ static struct omap_hwmod omap44xx_emif_fw_hwmod = {
* instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
*/
static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
.name = "l3",
.name = "l3",
};

/* l3_instr interface data */
Expand Down Expand Up @@ -347,7 +347,7 @@ static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
* instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
*/
static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
.name = "l4",
.name = "l4",
};

/* l4_abe interface data */
Expand Down Expand Up @@ -461,7 +461,7 @@ static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
* instance(s): mpu_private
*/
static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
.name = "mpu_bus",
.name = "mpu_bus",
};

/* mpu_private interface data */
Expand Down Expand Up @@ -667,7 +667,7 @@ static struct omap_hwmod omap44xx_dma_system_hwmod = {
*/

static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
.name = "dsp",
.name = "dsp",
};

/* dsp */
Expand Down Expand Up @@ -764,15 +764,15 @@ static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
};

static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
.name = "gpio",
.sysc = &omap44xx_gpio_sysc,
.rev = 2,
.name = "gpio",
.sysc = &omap44xx_gpio_sysc,
.rev = 2,
};

/* gpio dev_attr */
static struct omap_gpio_dev_attr gpio_dev_attr = {
.bank_width = 32,
.dbck_flag = true,
.bank_width = 32,
.dbck_flag = true,
};

/* gpio1 */
Expand Down Expand Up @@ -1109,8 +1109,8 @@ static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
};

static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
.name = "i2c",
.sysc = &omap44xx_i2c_sysc,
.name = "i2c",
.sysc = &omap44xx_i2c_sysc,
};

/* i2c1 */
Expand Down Expand Up @@ -1331,7 +1331,7 @@ static struct omap_hwmod omap44xx_i2c4_hwmod = {
*/

static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
.name = "iva",
.name = "iva",
};

/* iva */
Expand Down Expand Up @@ -1440,7 +1440,7 @@ static struct omap_hwmod omap44xx_iva_hwmod = {
*/

static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
.name = "mpu",
.name = "mpu",
};

/* mpu */
Expand Down Expand Up @@ -1495,9 +1495,9 @@ static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
};

static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
.name = "smartreflex",
.sysc = &omap44xx_smartreflex_sysc,
.rev = 2,
.name = "smartreflex",
.sysc = &omap44xx_smartreflex_sysc,
.rev = 2,
};

/* smartreflex_core */
Expand Down Expand Up @@ -1656,8 +1656,8 @@ static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
};

static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
.name = "uart",
.sysc = &omap44xx_uart_sysc,
.name = "uart",
.sysc = &omap44xx_uart_sysc,
};

/* uart1 */
Expand Down Expand Up @@ -1889,7 +1889,7 @@ static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
.name = "wd_timer",
.sysc = &omap44xx_wd_timer_sysc,
.pre_shutdown = &omap2_wd_timer_disable
.pre_shutdown = &omap2_wd_timer_disable,
};

/* wd_timer2 */
Expand Down Expand Up @@ -2002,6 +2002,7 @@ static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
};

static __initdata struct omap_hwmod *omap44xx_hwmods[] = {

/* dmm class */
&omap44xx_dmm_hwmod,

Expand Down

0 comments on commit fe13471

Please sign in to comment.