diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2016-10-01 20:41:59 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-10-04 19:17:53 +0200 |
commit | ffcc07dbad4273ec53331d5aa24a336b7e78b73f (patch) | |
tree | 44aca52edc9e47e0b873c018689075ee1ea2f9c9 /src/mainboard/siemens/sitemp_g1p1/mainboard.c | |
parent | 7db506c3dd70f9ac0e8cdc481a47fa3835538be2 (diff) | |
download | coreboot-ffcc07dbad4273ec53331d5aa24a336b7e78b73f.tar.xz |
mainboard/siemens/sitemp_g1p1: Use tabs for indents
Change-Id: Ia5ea2198cdc93822723a4fe5440d574d76cb4de2
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/16847
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/mainboard/siemens/sitemp_g1p1/mainboard.c')
-rw-r--r-- | src/mainboard/siemens/sitemp_g1p1/mainboard.c | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/src/mainboard/siemens/sitemp_g1p1/mainboard.c b/src/mainboard/siemens/sitemp_g1p1/mainboard.c index 8c65972f31..736ef3431e 100644 --- a/src/mainboard/siemens/sitemp_g1p1/mainboard.c +++ b/src/mainboard/siemens/sitemp_g1p1/mainboard.c @@ -335,27 +335,25 @@ static void cable_detect(void) static const char * adt7475_detect( void ) { - int vendid, devid, devid2; - const char *name = NULL; - - vendid = adt7475_read_byte(REG_VENDID); - devid2 = adt7475_read_byte(REG_DEVID2); - if (vendid != 0x41 || /* Analog Devices */ - (devid2 & 0xf8) != 0x68) { - return name; - } + int vendid, devid, devid2; + const char *name = NULL; - devid = adt7475_read_byte(REG_DEVID); - if (devid == 0x73) - name = "adt7473"; - else if (devid == 0x75 && adt7475_address == 0x2e) - name = "adt7475"; - else if (devid == 0x76) - name = "adt7476"; - else if ((devid2 & 0xfc) == 0x6c) - name = "adt7490"; - - return name; + vendid = adt7475_read_byte(REG_VENDID); + devid2 = adt7475_read_byte(REG_DEVID2); + if (vendid != 0x41 || (devid2 & 0xf8) != 0x68) /* Analog Devices */ + return name; + + devid = adt7475_read_byte(REG_DEVID); + if (devid == 0x73) + name = "adt7473"; + else if (devid == 0x75 && adt7475_address == 0x2e) + name = "adt7475"; + else if (devid == 0x76) + name = "adt7476"; + else if ((devid2 & 0xfc) == 0x6c) + name = "adt7490"; + + return name; } // thermal control defaults |