From 3cfb914658ab077aef9ed500aa4a583782971fbf Mon Sep 17 00:00:00 2001 From: ivanmeler Date: Tue, 10 May 2022 18:21:53 +0000 Subject: [PATCH] HACK: expose tsp/cmd as tsp/cmd2 for new power hal dt2w --- drivers/input/sec_cmd.c | 2 ++ drivers/input/touchscreen/stm/fts7/fts_sec.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/input/sec_cmd.c b/drivers/input/sec_cmd.c index e7a20c8ed1c6..5ac399367802 100644 --- a/drivers/input/sec_cmd.c +++ b/drivers/input/sec_cmd.c @@ -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, diff --git a/drivers/input/touchscreen/stm/fts7/fts_sec.c b/drivers/input/touchscreen/stm/fts7/fts_sec.c index aa8e19dcb15f..620274f324e8 100644 --- a/drivers/input/touchscreen/stm/fts7/fts_sec.c +++ b/drivers/input/touchscreen/stm/fts7/fts_sec.c @@ -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, -- 2.20.1