From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: linux-kernel@vger.kernel.org
Cc: linux-amarula@amarulasolutions.com,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Al Viro <viro@zeniv.linux.org.uk>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Oliver Graute <oliver.graute@kococonnector.com>,
Wolfram Sang <wsa+renesas@sang-engineering.com>,
Yu Jiaoliang <yujiaoliang@vivo.com>,
linux-input@vger.kernel.org
Subject: [PATCH 2/2] Input: edt-ft5x06 - rename sysfs attribute report_rate to report_rate_hz
Date: Mon, 15 Sep 2025 22:16:32 +0200 [thread overview]
Message-ID: <20250915201748.1712822-2-dario.binacchi@amarulasolutions.com> (raw)
In-Reply-To: <20250915201748.1712822-1-dario.binacchi@amarulasolutions.com>
The sysfs attribute has been renamed to report_rate_hz to match the
report-rate-hz property from device tree, making it clear that the same
parameter can be set via sysfs or device tree and behaves identically.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
drivers/input/touchscreen/edt-ft5x06.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c
index d7a269a0528f..c23cf3817664 100644
--- a/drivers/input/touchscreen/edt-ft5x06.c
+++ b/drivers/input/touchscreen/edt-ft5x06.c
@@ -543,8 +543,8 @@ static int edt_ft5x06_report_rate_get(struct edt_ft5x06_ts_data *tsdata)
return 0;
}
-static ssize_t report_rate_show(struct device *dev,
- struct device_attribute *dattr, char *buf)
+static ssize_t report_rate_hz_show(struct device *dev,
+ struct device_attribute *dattr, char *buf)
{
struct i2c_client *client = to_i2c_client(dev);
struct edt_ft5x06_ts_data *tsdata = i2c_get_clientdata(client);
@@ -597,9 +597,9 @@ static int edt_ft5x06_report_rate_set(struct edt_ft5x06_ts_data *tsdata,
val);
}
-static ssize_t report_rate_store(struct device *dev,
- struct device_attribute *dattr,
- const char *buf, size_t count)
+static ssize_t report_rate_hz_store(struct device *dev,
+ struct device_attribute *dattr,
+ const char *buf, size_t count)
{
struct i2c_client *client = to_i2c_client(dev);
struct edt_ft5x06_ts_data *tsdata = i2c_get_clientdata(client);
@@ -645,7 +645,7 @@ static ssize_t report_rate_store(struct device *dev,
return error ?: count;
}
-static DEVICE_ATTR_RW(report_rate);
+static DEVICE_ATTR_RW(report_rate_hz);
static ssize_t model_show(struct device *dev, struct device_attribute *attr,
char *buf)
@@ -699,7 +699,7 @@ static struct attribute *edt_ft5x06_attrs[] = {
&edt_ft5x06_attr_offset_x.dattr.attr,
&edt_ft5x06_attr_offset_y.dattr.attr,
&edt_ft5x06_attr_threshold.dattr.attr,
- &dev_attr_report_rate.attr,
+ &dev_attr_report_rate_hz.attr,
&dev_attr_model.attr,
&dev_attr_fw_version.attr,
&dev_attr_header_errors.attr,
--
2.43.0
base-commit: f83ec76bf285bea5727f478a68b894f5543ca76e
branch: edt-ft5x06-report-rate
next prev parent reply other threads:[~2025-09-15 20:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-15 20:16 [PATCH 1/2] Input: edt-ft5x06 - fix report rate handling by sysfs Dario Binacchi
2025-09-15 20:16 ` Dario Binacchi [this message]
2025-09-16 0:38 ` [PATCH 2/2] Input: edt-ft5x06 - rename sysfs attribute report_rate to report_rate_hz Dmitry Torokhov
2025-09-18 16:04 ` Dario Binacchi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250915201748.1712822-2-dario.binacchi@amarulasolutions.com \
--to=dario.binacchi@amarulasolutions.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-amarula@amarulasolutions.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oliver.graute@kococonnector.com \
--cc=viro@zeniv.linux.org.uk \
--cc=wsa+renesas@sang-engineering.com \
--cc=yujiaoliang@vivo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox