From 7f1baece0a5be8e7860cfe09bd94b39ffb3ba93c Mon Sep 17 00:00:00 2001 From: Shawn Nematbakhsh Date: Tue, 17 Nov 2015 10:03:12 -0800 Subject: fusb302: Move i2c slave address defines to common header BUG=None TEST=`make buildall -j` BRANCH=None Change-Id: I51000b3ad32ebef8d19a685b8adbbbe2a42301f5 Signed-off-by: Shawn Nematbakhsh Reviewed-on: https://chromium-review.googlesource.com/312797 Commit-Ready: Shawn N Tested-by: Shawn N Reviewed-by: Alec Berg --- board/snoball/board.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'board') diff --git a/board/snoball/board.c b/board/snoball/board.c index 33677d1ca1..a081bab8c3 100644 --- a/board/snoball/board.c +++ b/board/snoball/board.c @@ -9,6 +9,7 @@ #include "adc_chip.h" #include "common.h" #include "console.h" +#include "fusb302.h" #include "gpio.h" #include "hooks.h" #include "host_command.h" @@ -33,8 +34,6 @@ const struct i2c_port_t i2c_ports[] = { }; const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); -#define FUSB302_I2C_SLAVE_ADDR 0x44 - const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_COUNT] = { {STM32_I2C1_PORT, FUSB302_I2C_SLAVE_ADDR}, {STM32_I2C2_PORT, FUSB302_I2C_SLAVE_ADDR}, -- cgit v1.2.1