Changeset 1433ecda in mainline for uspace/drv/platform


Ignore:
Timestamp:
2018-04-04T15:42:37Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

Location:
uspace/drv/platform
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/platform/amdm37x/main.c

    r47b2d7e3 r1433ecda  
    132132
    133133static const amdm37x_fun_t amdm37x_funcs[] = {
    134 {
    135         .name = "ohci",
    136         .id = "usb/host=ohci",
    137         .score = 90,
    138         .hw_resources = { .resources = ohci_res, .count = ARRAY_SIZE(ohci_res) }
    139 },
    140 {
    141         .name = "ehci",
    142         .id = "usb/host=ehci",
    143         .score = 90,
    144         .hw_resources = { .resources = ehci_res, .count = ARRAY_SIZE(ehci_res) }
    145 },
    146 {
    147         .name = "fb",
    148         .id = "amdm37x&dispc",
    149         .score = 90,
    150         .hw_resources = { .resources = disp_res, .count = ARRAY_SIZE(disp_res) }
    151 },
     134        {
     135                .name = "ohci",
     136                .id = "usb/host=ohci",
     137                .score = 90,
     138                .hw_resources = { .resources = ohci_res, .count = ARRAY_SIZE(ohci_res) }
     139        },
     140        {
     141                .name = "ehci",
     142                .id = "usb/host=ehci",
     143                .score = 90,
     144                .hw_resources = { .resources = ehci_res, .count = ARRAY_SIZE(ehci_res) }
     145        },
     146        {
     147                .name = "fb",
     148                .id = "amdm37x&dispc",
     149                .score = 90,
     150                .hw_resources = { .resources = disp_res, .count = ARRAY_SIZE(disp_res) }
     151        },
    152152};
    153153
     
    261261};
    262262
    263 static hw_resource_list_t * amdm37x_get_resources(ddf_fun_t *fnode)
     263static hw_resource_list_t *amdm37x_get_resources(ddf_fun_t *fnode)
    264264{
    265265        amdm37x_fun_t *fun = ddf_fun_data_get(fnode);
  • uspace/drv/platform/amdm37x/prm/clock_control.h

    r47b2d7e3 r1433ecda  
    6464static inline unsigned sys_clk_freq_kHz(unsigned reg_val)
    6565{
    66         switch(reg_val)
    67         {
    68         case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_12M: return 12000;
    69         case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_13M: return 13000;
    70         case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_19_2M: return 19200;
    71         case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_26M: return 26000;
    72         case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_38_4M: return 38400;
    73         case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_16_8M: return 16800;
     66        switch (reg_val) {
     67        case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_12M:
     68                return 12000;
     69        case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_13M:
     70                return 13000;
     71        case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_19_2M:
     72                return 19200;
     73        case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_26M:
     74                return 26000;
     75        case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_38_4M:
     76                return 38400;
     77        case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_16_8M:
     78                return 16800;
    7479        }
    7580        return 0;
  • uspace/drv/platform/mac/mac.c

    r47b2d7e3 r1433ecda  
    235235
    236236static pio_window_ops_t fun_pio_window_ops = {
    237         .get_pio_window = &mac_get_pio_window
     237        .get_pio_window = &mac_get_pio_window
    238238};
    239239
    240240static hw_res_ops_t fun_hw_res_ops = {
    241         .get_resource_list = &mac_get_resources,
     241        .get_resource_list = &mac_get_resources,
    242242        .enable_interrupt = &mac_enable_interrupt
    243243};
Note: See TracChangeset for help on using the changeset viewer.