mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
guam: input touch add class ic_ver support
input touch add class ic_ver support NO_PROP_NEEDED: only for guam Change-Id: I315c83611f52196a62d57325645bc27217a39d6c Signed-off-by: dengwei1 <dengwei1@motorola.com> Reviewed-on: https://gerrit.mot.com/1610780 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
b56025a63d
commit
74fd22263c
3 changed files with 31 additions and 0 deletions
|
|
@ -2561,9 +2561,22 @@ static ssize_t vendor_show(struct device *dev,
|
|||
return scnprintf(buf, PAGE_SIZE, "chipone");
|
||||
}
|
||||
|
||||
/* Attribute: vendor (RO) */
|
||||
static ssize_t ic_ver_show(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
struct chipone_ts_data *ts = dev_get_drvdata(dev);
|
||||
|
||||
return scnprintf(buf, PAGE_SIZE, "%s%s\n%s%04x\n%s%04x\n",
|
||||
"Product ID: ", ts->cts_dev.hwdata->name,
|
||||
"Build ID: ", ts->cts_dev.fwdata.version,
|
||||
"Config ID: ", ts->cts_dev.fwdata.ddi_version);
|
||||
}
|
||||
|
||||
static struct device_attribute touchscreen_attributes[] = {
|
||||
__ATTR_RO(path),
|
||||
__ATTR_RO(vendor),
|
||||
__ATTR_RO(ic_ver),
|
||||
__ATTR_NULL
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -3337,9 +3337,25 @@ static ssize_t vendor_show(struct device *dev,
|
|||
return scnprintf(buf, PAGE_SIZE, "himax");
|
||||
}
|
||||
|
||||
/* Attribute: vendor (RO) */
|
||||
static ssize_t ic_ver_show(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
struct himax_ts_data *ts = dev_get_drvdata(dev);
|
||||
int buildid;
|
||||
|
||||
buildid = (ic_data->vendor_cid_maj_ver << 8 |
|
||||
ic_data->vendor_cid_min_ver);
|
||||
return scnprintf(buf, PAGE_SIZE, "%s%s\n%s%04x\n%s%04x\n",
|
||||
"Product ID: ", ts->chip_name,
|
||||
"Build ID: ", buildid ? buildid : ts->build_id,
|
||||
"Config ID: ", ic_data->vendor_touch_cfg_ver ? ic_data->vendor_touch_cfg_ver : ts->config_id);
|
||||
}
|
||||
|
||||
static struct device_attribute touchscreen_attributes[] = {
|
||||
__ATTR_RO(path),
|
||||
__ATTR_RO(vendor),
|
||||
__ATTR_RO(ic_ver),
|
||||
__ATTR_NULL
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -410,6 +410,8 @@ struct himax_ts_data {
|
|||
int (*power)(int on);
|
||||
int pre_finger_data[10][2];
|
||||
bool vdd_1v8_always_on;
|
||||
uint32_t build_id;
|
||||
uint32_t config_id;
|
||||
|
||||
struct device *dev;
|
||||
struct workqueue_struct *himax_wq;
|
||||
|
|
|
|||
Loading…
Reference in a new issue