diff options
author | Wendly Li <wendlyli@google.com> | 2022-01-06 07:52:19 +0000 |
---|---|---|
committer | Wendly Li <wendlyli@google.com> | 2022-01-21 03:53:14 +0000 |
commit | 0f9e7e8f390c3d06c81cac7c2a94d341a25cd896 (patch) | |
tree | 582bc6c608ebec8cfbf4631c00ee7c17970665b5 /goodix_brl_i2c.c | |
parent | f4cbd1e784f777c544763bb0e2bdb65ad5c685cf (diff) | |
download | goodix_touch-0f9e7e8f390c3d06c81cac7c2a94d341a25cd896.tar.gz |
Import v1.0.0 driver
Bug: 214018056
Bug: 214118475
Change-Id: I34f2afbc46ad1e4ac025cf199f323cf09e27ddec
Signed-off-by: Wendly Li <wendlyli@google.com>
Diffstat (limited to 'goodix_brl_i2c.c')
-rw-r--r-- | goodix_brl_i2c.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/goodix_brl_i2c.c b/goodix_brl_i2c.c index be7d638..1173add 100644 --- a/goodix_brl_i2c.c +++ b/goodix_brl_i2c.c @@ -173,7 +173,7 @@ static int goodix_i2c_probe( return -EIO; /* get ic type */ - ret = goodix_get_ic_type(client->dev.of_node); + ret = goodix_get_ic_type(client->dev.of_node, &goodix_i2c_bus); if (ret < 0) return ret; @@ -225,13 +225,16 @@ static int goodix_i2c_remove(struct i2c_client *client) #ifdef CONFIG_OF static const struct of_device_id i2c_matches[] = { { - .compatible = "goodix,gt9897", + .compatible = "goodix,brl-a", }, { - .compatible = "goodix,gt9966", + .compatible = "goodix,brl-b", }, { - .compatible = "goodix,gt9916", + .compatible = "goodix,brl-d", + }, + { + .compatible = "goodix,nottingham", }, {}, }; |