fpga: altera: More indentation trimdown
Further improve the indentation in the rest of the file, where the indentation is initially a bit less brutal. There is no functional change in this patch. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Chin Liang See <clsee@altera.com> Cc: Dinh Nguyen <dinguyen@altera.com> Cc: Albert Aribaud <albert.u.boot@aribaud.net> Cc: Tom Rini <trini@ti.com> Cc: Wolfgang Denk <wd@denx.de> Cc: Pavel Machek <pavel@denx.de> Acked-by: Pavel Machek <pavel@denx.de>
This commit is contained in:
parent
5561a84148
commit
4a4c0a5e9a
@ -26,9 +26,11 @@ int altera_load(Altera_desc *desc, const void *buf, size_t bsize)
|
||||
{
|
||||
int ret_val = FPGA_FAIL; /* assume a failure */
|
||||
|
||||
if (!altera_validate (desc, (char *)__func__)) {
|
||||
if (!altera_validate(desc, (char *)__func__)) {
|
||||
printf("%s: Invalid device descriptor\n", __func__);
|
||||
} else {
|
||||
return FPGA_FAIL;
|
||||
}
|
||||
|
||||
switch (desc->family) {
|
||||
case Altera_ACEX1K:
|
||||
case Altera_CYC2:
|
||||
@ -60,7 +62,6 @@ int altera_load(Altera_desc *desc, const void *buf, size_t bsize)
|
||||
printf("%s: Unsupported family type, %d\n",
|
||||
__func__, desc->family);
|
||||
}
|
||||
}
|
||||
|
||||
return ret_val;
|
||||
}
|
||||
@ -71,7 +72,9 @@ int altera_dump(Altera_desc *desc, const void *buf, size_t bsize)
|
||||
|
||||
if (!altera_validate (desc, (char *)__func__)) {
|
||||
printf("%s: Invalid device descriptor\n", __func__);
|
||||
} else {
|
||||
return FPGA_FAIL;
|
||||
}
|
||||
|
||||
switch (desc->family) {
|
||||
case Altera_ACEX1K:
|
||||
#if defined(CONFIG_FPGA_ACEX)
|
||||
@ -97,16 +100,19 @@ int altera_dump(Altera_desc *desc, const void *buf, size_t bsize)
|
||||
printf("%s: Unsupported family type, %d\n",
|
||||
__func__, desc->family);
|
||||
}
|
||||
}
|
||||
|
||||
return ret_val;
|
||||
}
|
||||
|
||||
int altera_info( Altera_desc *desc )
|
||||
int altera_info(Altera_desc *desc)
|
||||
{
|
||||
int ret_val = FPGA_FAIL;
|
||||
|
||||
if (altera_validate (desc, (char *)__func__)) {
|
||||
if (!altera_validate (desc, (char *)__func__)) {
|
||||
printf("%s: Invalid device descriptor\n", __func__);
|
||||
return FPGA_FAIL;
|
||||
}
|
||||
|
||||
printf("Family: \t");
|
||||
switch (desc->family) {
|
||||
case Altera_ACEX1K:
|
||||
@ -144,8 +150,7 @@ int altera_info( Altera_desc *desc )
|
||||
printf("Fast Passive Parallel (FPP)\n");
|
||||
break;
|
||||
case fast_passive_parallel_security:
|
||||
printf
|
||||
("Fast Passive Parallel with Security (FPPS) \n");
|
||||
printf("Fast Passive Parallel with Security (FPPS)\n");
|
||||
break;
|
||||
/* Add new interface types here */
|
||||
default:
|
||||
@ -186,9 +191,6 @@ int altera_info( Altera_desc *desc )
|
||||
}
|
||||
|
||||
ret_val = FPGA_SUCCESS;
|
||||
} else {
|
||||
printf("%s: Invalid device descriptor\n", __func__);
|
||||
}
|
||||
|
||||
return ret_val;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user