From 2b2c65c0ca61bc8f51294685b5fb0b779db8c552 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Mon, 8 Jan 2018 10:48:05 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/23170 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Justin TerAvest Reviewed-by: Chris Ching Reviewed-by: Marshall Dawson --- src/soc/amd/stoneyridge/i2c.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/soc') 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 #include -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) { -- cgit v1.2.3