diff options
author | Aaron Durbin <adurbin@chromium.org> | 2018-01-08 10:48:05 -0700 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2018-01-08 20:06:26 +0000 |
commit | 2b2c65c0ca61bc8f51294685b5fb0b779db8c552 (patch) | |
tree | f2fd8bf2366eb18634f3110875cefcedf6ea6524 /src/soc/amd/stoneyridge | |
parent | e9be44e6d897602c1a714c7f7f25be1686b175b4 (diff) | |
download | coreboot-2b2c65c0ca61bc8f51294685b5fb0b779db8c552.tar.xz |
soc/amd/stoneyridge/i2c: fix formatting and global symbol
The i2c_bus_address array doesn't need to be a global symbol.
Also, the array initializer had some weird indention and there
was an extra new line. For consistency the first entry is multiplied
by 0 so the formatting is similar.
BUG=b:69416132
Change-Id: I74f6dca3a22a245759536f792ce04ac61735b6d0
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/23170
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Justin TerAvest <teravest@chromium.org>
Reviewed-by: Chris Ching <chingcodes@chromium.org>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Diffstat (limited to 'src/soc/amd/stoneyridge')
-rw-r--r-- | src/soc/amd/stoneyridge/i2c.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/soc/amd/stoneyridge/i2c.c b/src/soc/amd/stoneyridge/i2c.c index 2837a910be..7ce1c244ca 100644 --- a/src/soc/amd/stoneyridge/i2c.c +++ b/src/soc/amd/stoneyridge/i2c.c @@ -16,12 +16,12 @@ #include <drivers/i2c/designware/dw_i2c.h> #include <soc/iomap.h> -const uintptr_t i2c_bus_address[] = { I2C_BASE_ADDRESS, - I2C_BASE_ADDRESS + I2C_DEVICE_SIZE * 1, - I2C_BASE_ADDRESS + I2C_DEVICE_SIZE * 2, - I2C_BASE_ADDRESS + I2C_DEVICE_SIZE * 3, - }; - +static const uintptr_t i2c_bus_address[] = { + I2C_BASE_ADDRESS + I2C_DEVICE_SIZE * 0, + I2C_BASE_ADDRESS + I2C_DEVICE_SIZE * 1, + I2C_BASE_ADDRESS + I2C_DEVICE_SIZE * 2, + I2C_BASE_ADDRESS + I2C_DEVICE_SIZE * 3, +}; uintptr_t dw_i2c_base_address(unsigned int bus) { |