diff options
author | Diana Z <dzigterman@chromium.org> | 2021-02-16 11:13:48 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-24 19:09:49 +0000 |
commit | 4cd6d9cede73423e21ca01405e5eae820487748f (patch) | |
tree | 0355e27fe3cc5a0dbbb0435f8e04479688d24344 | |
parent | 2030fa989af3b8a10e75531d622592002a72d204 (diff) | |
download | chrome-ec-4cd6d9cede73423e21ca01405e5eae820487748f.tar.gz |
COIL: Rename GT7288 address define
Rename GT7288 address definition to match current I2C naming
conventions.
BRANCH=None
BUG=None
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ief917ff36510150d2a6ea03875d6e95dcb57c350
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2697857
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
-rw-r--r-- | driver/touchpad_gt7288.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/driver/touchpad_gt7288.c b/driver/touchpad_gt7288.c index ccc98622d5..ac05b88323 100644 --- a/driver/touchpad_gt7288.c +++ b/driver/touchpad_gt7288.c @@ -18,7 +18,7 @@ #define CPRINTS(format, args...) cprints(CC_TOUCHPAD, format, ## args) -#define GT7288_SLAVE_ADDRESS 0x14 +#define GT7288_I2C_ADDR_FLAGS 0x14 #define GT7288_REPORT_ID_PTP 0x04 @@ -47,7 +47,7 @@ static int gt7288_read_desc(uint16_t register_id, uint8_t *data, uint8_t reg_bytes[] = { register_id & 0xFF, (register_id & 0xFF00) >> 8 }; - return i2c_xfer(CONFIG_TOUCHPAD_I2C_PORT, GT7288_SLAVE_ADDRESS, + return i2c_xfer(CONFIG_TOUCHPAD_I2C_PORT, GT7288_I2C_ADDR_FLAGS, reg_bytes, sizeof(reg_bytes), data, max_length); } @@ -88,7 +88,7 @@ static void gt7288_translate_contact(const uint8_t *data, static int gt7288_read(uint8_t *data, size_t max_length) { - return i2c_xfer(CONFIG_TOUCHPAD_I2C_PORT, GT7288_SLAVE_ADDRESS, + return i2c_xfer(CONFIG_TOUCHPAD_I2C_PORT, GT7288_I2C_ADDR_FLAGS, NULL, 0, data, max_length); } |