]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: socfpga: clock: Get rid of cm_config_t typedef
authorMarek Vasut <marex@denx.de>
Sat, 25 Jul 2015 06:37:16 +0000 (08:37 +0200)
committerMarek Vasut <marex@denx.de>
Sat, 8 Aug 2015 12:14:06 +0000 (14:14 +0200)
Get rid of this cryptic typedef and replace it with explicit struct cm_config.

Signed-off-by: Marek Vasut <marex@denx.de>
arch/arm/mach-socfpga/clock_manager.c
arch/arm/mach-socfpga/include/mach/clock_manager.h
arch/arm/mach-socfpga/spl.c

index fa3b93a2572cb841c818337ecbceb4f34f7fd5fd..74aa1d9be626414980e313f2ee0ce055c882cf47 100644 (file)
@@ -88,7 +88,7 @@ static void cm_write_with_phase(uint32_t value,
  * Ungate clocks
  */
 
-void cm_basic_init(const cm_config_t *cfg)
+void cm_basic_init(const struct cm_config *cfg)
 {
        uint32_t start, timeout;
 
index 5449726180282e5d3f4b7c3fd5479ab7fe6f2116..8a3362f4ab4b24666c445ee1134f6cceb8f14490 100644 (file)
@@ -17,7 +17,7 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
 unsigned int cm_get_spi_controller_clk_hz(void);
 #endif
 
-typedef struct {
+struct cm_config {
        /* main group */
        uint32_t main_vco_base;
        uint32_t mpuclk;
@@ -49,9 +49,9 @@ typedef struct {
        uint32_t ddr2xdqsclk;
        uint32_t ddrdqclk;
        uint32_t s2fuser2clk;
-} cm_config_t;
+};
 
-extern void cm_basic_init(const cm_config_t *cfg);
+extern void cm_basic_init(const struct cm_config *cfg);
 
 struct socfpga_clock_manager_main_pll {
        u32     vco;
index 400e46393bd4c645ab662db4612676df7df049ad..6850fbff1553d593404b32d3fb5c5a8562a1503a 100644 (file)
@@ -85,7 +85,7 @@ void spl_board_init(void)
 {
        unsigned long sdram_size;
 #ifndef CONFIG_SOCFPGA_VIRTUAL_TARGET
-       cm_config_t cm_default_cfg = {
+       struct cm_config cm_default_cfg = {
                /* main group */
                MAIN_VCO_BASE,
                (CONFIG_HPS_MAINPLLGRP_MPUCLK_CNT <<