src: Use space after 'if', 'for'
Change-Id: I5d3a5ede47aefc7cc2ee330f8a0bcded16138764 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44173 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
6aa9d66873
commit
5ba154a597
|
@ -130,7 +130,7 @@ static void setup_interrupt_handlers(void)
|
||||||
{
|
{
|
||||||
/* If the mainboard_interrupt_handler isn't called first.
|
/* If the mainboard_interrupt_handler isn't called first.
|
||||||
*/
|
*/
|
||||||
if(!intXX_handler[i])
|
if (!intXX_handler[i])
|
||||||
{
|
{
|
||||||
/* Now set the default functions that are actually
|
/* Now set the default functions that are actually
|
||||||
* needed to initialize the option roms. This is
|
* needed to initialize the option roms. This is
|
||||||
|
|
|
@ -254,7 +254,7 @@ static void parade_dp_bridge_setup(void)
|
||||||
* we're out of here.
|
* we're out of here.
|
||||||
* If it's not ready after a second, then we're in big trouble.
|
* If it's not ready after a second, then we're in big trouble.
|
||||||
*/
|
*/
|
||||||
for(i = 0; i < 1000; i++){
|
for (i = 0; i < 1000; i++){
|
||||||
if (gpio_get_value(dp_hpd))
|
if (gpio_get_value(dp_hpd))
|
||||||
break;
|
break;
|
||||||
mdelay(1);
|
mdelay(1);
|
||||||
|
|
|
@ -129,13 +129,13 @@ static unsigned long primitive_mem_test(void)
|
||||||
unsigned long *l = (void *)0x40000000;
|
unsigned long *l = (void *)0x40000000;
|
||||||
int bad = 0;
|
int bad = 0;
|
||||||
unsigned long i;
|
unsigned long i;
|
||||||
for(i = 0; i < 256*1048576; i++){
|
for (i = 0; i < 256*1048576; i++){
|
||||||
if (! (i%1048576))
|
if (! (i%1048576))
|
||||||
printk(BIOS_SPEW, "%lu ...", i);
|
printk(BIOS_SPEW, "%lu ...", i);
|
||||||
l[i] = 0xffffffff - i;
|
l[i] = 0xffffffff - i;
|
||||||
}
|
}
|
||||||
|
|
||||||
for(i = 0; i < 256*1048576; i++){
|
for (i = 0; i < 256*1048576; i++){
|
||||||
if (! (i%1048576))
|
if (! (i%1048576))
|
||||||
printk(BIOS_SPEW, "%lu ...", i);
|
printk(BIOS_SPEW, "%lu ...", i);
|
||||||
if (l[i] != (0xffffffff - i)){
|
if (l[i] != (0xffffffff - i)){
|
||||||
|
@ -177,7 +177,7 @@ static void simple_spi_test(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
for(i = 0; i < amt; i += 4){
|
for (i = 0; i < amt; i += 4){
|
||||||
if (rdev_readat(boot_dev, &in, i, 4) < 4) {
|
if (rdev_readat(boot_dev, &in, i, 4) < 4) {
|
||||||
printk(BIOS_SPEW, "simple_spi_test fails at %d\n", i);
|
printk(BIOS_SPEW, "simple_spi_test fails at %d\n", i);
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -251,7 +251,7 @@ void m3885_configure_multikey(void)
|
||||||
maxvars = m3885_get_variable(0x00);
|
maxvars = m3885_get_variable(0x00);
|
||||||
printk(BIOS_DEBUG, "M388x has %d variables in original bank.\n", maxvars);
|
printk(BIOS_DEBUG, "M388x has %d variables in original bank.\n", maxvars);
|
||||||
for (i = 0; i < ARRAY_SIZE(variables); i+=3) {
|
for (i = 0; i < ARRAY_SIZE(variables); i+=3) {
|
||||||
if(variables[i + 0] > maxvars)
|
if (variables[i + 0] > maxvars)
|
||||||
continue;
|
continue;
|
||||||
reg8 = m3885_get_variable(variables[i + 0]);
|
reg8 = m3885_get_variable(variables[i + 0]);
|
||||||
reg8 &= ~(variables[i + 1]);
|
reg8 &= ~(variables[i + 1]);
|
||||||
|
|
|
@ -498,7 +498,7 @@ int do_read_training(struct sysinfo *s)
|
||||||
FOR_EACH_BYTELANE(lane) {
|
FOR_EACH_BYTELANE(lane) {
|
||||||
saved_dqs_center[channel][lane] /= RT_LOOPS;
|
saved_dqs_center[channel][lane] /= RT_LOOPS;
|
||||||
while (saved_dqs_center[channel][lane]--) {
|
while (saved_dqs_center[channel][lane]--) {
|
||||||
if(rt_increment_dqs(&s->rt_dqs[channel][lane])
|
if (rt_increment_dqs(&s->rt_dqs[channel][lane])
|
||||||
== CB_ERR)
|
== CB_ERR)
|
||||||
/* Should never happen */
|
/* Should never happen */
|
||||||
printk(BIOS_ERR,
|
printk(BIOS_ERR,
|
||||||
|
|
|
@ -2166,7 +2166,7 @@ void do_raminit(struct sysinfo *s, int fast_boot)
|
||||||
|
|
||||||
if (!fast_boot) {
|
if (!fast_boot) {
|
||||||
if (s->selected_timings.mem_clk > MEM_CLOCK_667MHz) {
|
if (s->selected_timings.mem_clk > MEM_CLOCK_667MHz) {
|
||||||
if(do_write_training(s))
|
if (do_write_training(s))
|
||||||
die("DQ write training failed!");
|
die("DQ write training failed!");
|
||||||
}
|
}
|
||||||
if (do_read_training(s))
|
if (do_read_training(s))
|
||||||
|
|
|
@ -8,7 +8,7 @@ int sd_fill_soc_gpio_info(struct acpi_gpio* gpio, const struct device *dev)
|
||||||
config_t *config = config_of(dev);
|
config_t *config = config_of(dev);
|
||||||
|
|
||||||
/* Nothing to write if GPIO is not set in devicetree */
|
/* Nothing to write if GPIO is not set in devicetree */
|
||||||
if(!config->sdcard_cd_gpio_default && !config->sdcard_cd_gpio.pins[0])
|
if (!config->sdcard_cd_gpio_default && !config->sdcard_cd_gpio.pins[0])
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (config->sdcard_cd_gpio_default) {
|
if (config->sdcard_cd_gpio_default) {
|
||||||
|
|
Loading…
Reference in New Issue