Commit b34ce282 authored by Sandrine Bailleux's avatar Sandrine Bailleux
Browse files

juno: Improve compliance to Linux coding style

No related merge requests found
Showing with 11 additions and 10 deletions
+11 -10
......@@ -142,6 +142,7 @@ unsigned long platform_get_cfgvar(unsigned int var_id)
return platform_config[var_id];
}
unsigned long plat_get_ns_image_entrypoint(void) {
unsigned long plat_get_ns_image_entrypoint(void)
{
return NS_IMAGE_OFFSET;
}
......@@ -73,14 +73,14 @@ static io_file_spec bl33_file_spec = {
.mode = FOPEN_MODE_R
};
static int open_fip(void* spec);
static int open_memmap(void* spec);
static int open_fip(void *spec);
static int open_memmap(void *spec);
typedef struct {
char * image_name;
io_dev_handle* dev_handle;
void* image_spec;
int (*check)(void* spec);
char *image_name;
io_dev_handle *dev_handle;
void *image_spec;
int (*check)(void *spec);
} plat_io_policy;
static plat_io_policy policies[] = {
......@@ -88,7 +88,7 @@ static plat_io_policy policies[] = {
{ BL2_IMAGE_NAME, &fip_dev_handle, &bl2_file_spec, open_fip },
{ BL31_IMAGE_NAME, &fip_dev_handle, &bl31_file_spec, open_fip },
{ BL33_IMAGE_NAME, &fip_dev_handle, &bl33_file_spec, open_fip },
{0,0,0}
{0, 0, 0}
};
......@@ -187,8 +187,8 @@ int plat_get_image_source(const char *image_name, io_dev_handle *dev_handle,
if (strcmp(policy->image_name, image_name) == 0) {
result = policy->check(policy->image_spec);
if (result == IO_SUCCESS) {
*(io_file_spec**)image_spec = policy->image_spec;
*dev_handle=*(policy->dev_handle);
*(io_file_spec **)image_spec = policy->image_spec;
*dev_handle = *(policy->dev_handle);
break;
} else {
result = open_semihosting(policy->image_spec);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment