HACK: expose tsp/cmd as tsp/cmd2 for new power hal dt2w lineage-19.1
authorivanmeler <i_ivan@windowslive.com>
Tue, 10 May 2022 18:21:53 +0000 (18:21 +0000)
committerivanmeler <i_ivan@windowslive.com>
Tue, 10 May 2022 18:21:53 +0000 (18:21 +0000)
drivers/input/sec_cmd.c
drivers/input/touchscreen/stm/fts7/fts_sec.c

index e7a20c8ed1c626e39ebf29bc8bc40765bb9637fc..5ac3993678022f2e739c8353c1891d56bee8807d 100644 (file)
@@ -426,12 +426,14 @@ static ssize_t sec_cmd_list_show(struct device *dev,
 }
 
 static DEVICE_ATTR(cmd, S_IWUSR | S_IWGRP, NULL, sec_cmd_store);
+static DEVICE_ATTR(cmd2, S_IWUSR | S_IWGRP, NULL, sec_cmd_store);
 static DEVICE_ATTR(cmd_status, S_IRUGO, sec_cmd_show_status, NULL);
 static DEVICE_ATTR(cmd_result, S_IRUGO, sec_cmd_show_result, NULL);
 static DEVICE_ATTR(cmd_list, S_IRUGO, sec_cmd_list_show, NULL);
 
 static struct attribute *sec_fac_attrs[] = {
        &dev_attr_cmd.attr,
+        &dev_attr_cmd2.attr,
        &dev_attr_cmd_status.attr,
        &dev_attr_cmd_result.attr,
        &dev_attr_cmd_list.attr,
index aa8e19dcb15f29e832fd76847cf3ef4c6885d7cb..620274f324e8a34b288b4746cacf279f0294241c 100644 (file)
@@ -267,6 +267,7 @@ struct ft_cmd ft_commands[] = {
 };
 
 static DEVICE_ATTR(cmd, S_IWUSR | S_IWGRP, NULL, store_cmd);
+static DEVICE_ATTR(cmd2, S_IWUSR | S_IWGRP, NULL, store_cmd);
 static DEVICE_ATTR(cmd_status, S_IRUGO, show_cmd_status, NULL);
 static DEVICE_ATTR(cmd_result, S_IRUGO, show_cmd_result, NULL);
 static DEVICE_ATTR(cmd_list, S_IRUGO, cmd_list_show, NULL);
@@ -275,6 +276,7 @@ static DEVICE_ATTR(edge_pos, S_IRUGO, fts_edge_x_position, NULL);
 
 static struct attribute *sec_touch_facotry_attributes[] = {
        &dev_attr_cmd.attr,
+        &dev_attr_cmd2.attr,
        &dev_attr_cmd_status.attr,
        &dev_attr_cmd_result.attr,
        &dev_attr_cmd_list.attr,