Re: [PATCH v11 07/18] HID: asus: add support for response curve
From: Ilpo Järvinen
Date: Mon Oct 26 2026 - 09:13:37 EST
On Sun, 25 Oct 2026, Denis Benato wrote:
> ROG ally devices allows configuring the response curve of both joysticks,
> therefore add the ability of userspace to modify the response curve by
> exposing relevant sysfs attributes.
>
> Signed-off-by: Denis Benato <denis.benato@xxxxxxxxx>
> Signed-off-by: Luke Jones <luke@xxxxxxxxxx>
> ---
> drivers/hid/hid-asus.c | 297 ++++++++++++++++++++++++++++++++++++++++-
> 1 file changed, 294 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/hid/hid-asus.c b/drivers/hid/hid-asus.c
> index b4bc89ec28bc..e1883ee20413 100644
> --- a/drivers/hid/hid-asus.c
> +++ b/drivers/hid/hid-asus.c
> @@ -22,6 +22,7 @@
>
> #include <linux/acpi.h>
> #include <linux/cleanup.h>
> +#include <linux/ctype.h>
> #include <linux/device.h>
> #include <linux/dmi.h>
> #include <linux/hid.h>
> @@ -185,6 +186,18 @@ struct asus_touchpad_info {
> int report_size;
> };
>
> +struct ally_joystick_resp_curve_param {
> + u8 move;
> + u8 resp;
> +} __packed;
Add include (if I didn't mentioned it already with some earlier patch,
I don't recall anymore :-)).
--
i.