mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
guam: input touch add ic_ver support
input touch add ilitek ic_ver support NO_PROP_NEEDED Change-Id: I5611b9a3e404d82ffe307b46772a7b3589b750a6 Signed-off-by: dengwei1 <dengwei1@motorola.com> Reviewed-on: https://gerrit.mot.com/1740345 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
3b8344ecee
commit
f264d66fc2
1 changed files with 11 additions and 0 deletions
|
|
@ -2506,10 +2506,21 @@ static ssize_t vendor_show(struct device *dev,
|
|||
return scnprintf(buf, PAGE_SIZE, "ilitek");
|
||||
}
|
||||
|
||||
/* Attribute: ic_ver (RO) */
|
||||
static ssize_t ic_ver_show(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
return scnprintf(buf, PAGE_SIZE, "%s%s\n%s%d%d%d%d\n%s%04x\n",
|
||||
"Product ID: ", ilits->md_name,
|
||||
"Build ID: ", ilits->chip->fw_ver >> 24, (ilits->chip->fw_ver >> 16) & 0xFF,
|
||||
(ilits->chip->fw_ver >> 8) & 0xFF, ilits->chip->fw_ver & 0xFF,
|
||||
"Config ID: ", ilits->chip->core_ver);
|
||||
}
|
||||
|
||||
static struct device_attribute touchscreen_attributes[] = {
|
||||
__ATTR_RO(path),
|
||||
__ATTR_RO(vendor),
|
||||
__ATTR_RO(ic_ver),
|
||||
__ATTR_NULL
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue