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>
This commit is contained in:
parent
e9be44e6d8
commit
2b2c65c0ca
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue