From 497d013e9cc26d5e1fe57654afa38be0a793a577 Mon Sep 17 00:00:00 2001 From: mdlewisfb Date: Tue, 2 Oct 2018 18:45:29 -0700 Subject: [PATCH] Fixes for Test_PinGroup_driver.c and Test_pca9557.c warnings. --- firmware/ec/test/suites/Test_PinGroup_driver.c | 6 +----- firmware/ec/test/suites/Test_pca9557.c | 3 --- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/firmware/ec/test/suites/Test_PinGroup_driver.c b/firmware/ec/test/suites/Test_PinGroup_driver.c index 3084d6c75f..46ab0726b9 100644 --- a/firmware/ec/test/suites/Test_PinGroup_driver.c +++ b/firmware/ec/test/suites/Test_PinGroup_driver.c @@ -27,10 +27,6 @@ static uint8_t PCA9557_regs[] = { [0x02] = 0x00, /* Polarity */ [0x03] = 0x00, /* Dir Config */ }; -static const I2C_Dev pca9557_dev = { - .bus = 2, - .slave_addr = 0x24, -}; OcGpio_Port fe_ch1_gain_io = { .fn_table = &GpioPCA9557_fnTable, .cfg = &(PCA9557_Cfg) { @@ -133,4 +129,4 @@ void test_PinGroup_write(void) TEST_ASSERT_EQUAL_HEX8(0x04, PCA9557_regs[0x01]); TEST_ASSERT_EQUAL_HEX8(0xFF, PCA9557_regs[0x02]); TEST_ASSERT_EQUAL_HEX8(0xFF, PCA9557_regs[0x03]); -} \ No newline at end of file +} diff --git a/firmware/ec/test/suites/Test_pca9557.c b/firmware/ec/test/suites/Test_pca9557.c index a74145a86d..b48d09a855 100644 --- a/firmware/ec/test/suites/Test_pca9557.c +++ b/firmware/ec/test/suites/Test_pca9557.c @@ -14,9 +14,6 @@ #include /* ======================== Constants & variables =========================== */ -static const unsigned int I2C_BUS = 2; -static const uint8_t I2C_ADDR = 0x00; - static uint8_t PCA9557_regs[] = { [0x00] = 0x00, /* Input values */ [0x01] = 0x00, /* Output values */