Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions drivers/input/input_gt911.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
#define GT911_REG_CONFIG_TOUCH_NUM_OFFSET 0x5
#define GT911_REG_CONFIG_SIZE 186U
#define GT911_PRODUCT_ID 0x00313139U
#define GT9271_PRODUCT_ID 0x31373239U
#define GT912_PRODUCT_ID 0x00323139U

Check failure on line 38 in drivers/input/input_gt911.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

TRAILING_WHITESPACE

drivers/input/input_gt911.c:38 trailing whitespace
#define GT927_PRODUCT_ID 0x00373239U

Check failure on line 39 in drivers/input/input_gt911.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

TRAILING_WHITESPACE

drivers/input/input_gt911.c:39 trailing whitespace
#define GT928_PRODUCT_ID 0x00383239U

Check failure on line 40 in drivers/input/input_gt911.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

TRAILING_WHITESPACE

drivers/input/input_gt911.c:40 trailing whitespace
#define GT967_PRODUCT_ID 0x00373639U

Check failure on line 41 in drivers/input/input_gt911.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

TRAILING_WHITESPACE

drivers/input/input_gt911.c:41 trailing whitespace

/* Points registers */
#define GT911_REG_POINT_0 0x814F
Expand Down Expand Up @@ -385,9 +390,17 @@
LOG_ERR("Device did not respond to I2C request");
return r;
}
if (reg_id != GT911_PRODUCT_ID) {
LOG_ERR("The Device ID is not correct");
return -ENODEV;
switch (reg_id) {

Check failure on line 393 in drivers/input/input_gt911.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

SWITCH_CASE_INDENT_LEVEL

drivers/input/input_gt911.c:393 switch and case should be at the same indent
case GT911_PRODUCT_ID:
case GT912_PRODUCT_ID:
case GT927_PRODUCT_ID:
case GT928_PRODUCT_ID:
case GT967_PRODUCT_ID:
case GT9271_PRODUCT_ID:
break;
default:
LOG_ERR("The Device ID is not correct");
return -ENODEV;
}

/* need to setup the firmware first: read and write */
Expand Down
Loading