Browse Source

fix(xilinx): fix coding style violations

Fix coding style violations and alignments:
- Remove additional newlines in headers
- Remove additional newlines in code
- Add newline to separate variable from the code
- Use the same indentation in platform.mk
- Align function parameters
- Use tabs for indentation in kernel-doc format

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Change-Id: I0b12804ff63bc19778e8f21041f9accba5b488b9
pull/1985/head
Michal Simek 3 years ago
parent
commit
bb1768c67e
  1. 3
      plat/xilinx/common/pm_service/pm_ipi.c
  2. 1
      plat/xilinx/versal/pm_service/pm_client.c
  3. 2
      plat/xilinx/zynqmp/platform.mk
  4. 5
      plat/xilinx/zynqmp/pm_service/pm_api_sys.h
  5. 1
      plat/xilinx/zynqmp/pm_service/pm_svc_main.c
  6. 1
      plat/xilinx/zynqmp/tsp/tsp_plat_setup.c

3
plat/xilinx/common/pm_service/pm_ipi.c

@ -6,10 +6,8 @@
#include <arch_helpers.h>
#include <lib/bakery_lock.h>
#include <lib/mmio.h>
#include <ipi.h>
#include <plat_ipi.h>
#include <plat_private.h>
@ -17,7 +15,6 @@
#include "pm_ipi.h"
#define ERROR_CODE_MASK 0xFFFFU
DEFINE_BAKERY_LOCK(pm_secure_lock);

1
plat/xilinx/versal/pm_service/pm_client.c

@ -136,6 +136,7 @@ static void pm_client_set_wakeup_sources(uint32_t node_id)
enum pm_device_node_idx node_idx;
uint32_t idx, irq, lowest_set = reg & (-reg);
enum pm_ret_status ret;
idx = __builtin_ctz(lowest_set);
irq = base_irq + idx;

2
plat/xilinx/zynqmp/platform.mk

@ -45,7 +45,7 @@ endif
ifdef ZYNQMP_WDT_RESTART
$(eval $(call add_define,ZYNQMP_WDT_RESTART))
$(eval $(call add_define,ZYNQMP_WDT_RESTART))
endif
ifdef ZYNQMP_IPI_CRC_CHECK

5
plat/xilinx/zynqmp/pm_service/pm_api_sys.h

@ -175,7 +175,6 @@ enum pm_ret_status pm_secure_image(uint32_t address_low,
uint32_t key_lo,
uint32_t key_hi,
uint32_t *value);
enum pm_ret_status pm_fpga_read(uint32_t reg_numframes,
uint32_t address_low,
uint32_t address_high,
@ -189,15 +188,12 @@ enum pm_ret_status pm_register_access(unsigned int register_access_id,
unsigned int mask,
unsigned int value,
unsigned int *out);
enum pm_ret_status pm_pll_set_parameter(enum pm_node_id nid,
enum pm_pll_param param_id,
unsigned int value);
enum pm_ret_status pm_pll_get_parameter(enum pm_node_id nid,
enum pm_pll_param param_id,
unsigned int *value);
enum pm_ret_status pm_pll_set_mode(enum pm_node_id nid, enum pm_pll_mode mode);
enum pm_ret_status pm_pll_get_mode(enum pm_node_id nid, enum pm_pll_mode *mode);
enum pm_ret_status pm_efuse_access(uint32_t address_high,
@ -205,7 +201,6 @@ enum pm_ret_status pm_efuse_access(uint32_t address_high,
enum pm_ret_status em_set_action(unsigned int *value);
enum pm_ret_status em_remove_action(unsigned int *value);
enum pm_ret_status em_send_errors(unsigned int *value);
enum pm_ret_status pm_feature_config(unsigned int ioctl_id,
unsigned int config_id,
unsigned int value,

1
plat/xilinx/zynqmp/pm_service/pm_svc_main.c

@ -34,7 +34,6 @@ static spinlock_t inc_lock;
static int active_cores = 0;
#endif
/**
* pm_context - Structure which contains data for power management
* @api_version version of PM API, must match with one on PMU side

1
plat/xilinx/zynqmp/tsp/tsp_plat_setup.c

@ -8,7 +8,6 @@
#include <common/debug.h>
#include <drivers/console.h>
#include <plat/arm/common/plat_arm.h>
#include <plat_private.h>
#include <platform_tsp.h>

Loading…
Cancel
Save