Re: [PATCH v4 1/4] Input: aw86927 - respect vibration magnitude levels
From: Dmitry Torokhov
Date: Tue Mar 03 2026 - 23:56:28 EST
On Mon, Mar 02, 2026 at 11:50:25AM +0100, Griffin Kroah-Hartman wrote:
> Previously the gain value was hardcoded. Take the magnitude passed via
> the input API and configure the gain register accordingly.
>
> Signed-off-by: Griffin Kroah-Hartman <griffin.kroah@xxxxxxxxxxxxx>
> ---
> drivers/input/misc/aw86927.c | 14 +++++++-------
> 1 file changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/input/misc/aw86927.c b/drivers/input/misc/aw86927.c
> index 8ad361239cfe3a888628b15e4dbdeed0c9ca3d1a..7f8cadda7c456d7b5448d1e23edf6e3f2918ba32 100644
> --- a/drivers/input/misc/aw86927.c
> +++ b/drivers/input/misc/aw86927.c
> @@ -180,7 +180,7 @@ struct aw86927_data {
> struct i2c_client *client;
> struct regmap *regmap;
> struct gpio_desc *reset_gpio;
> - bool running;
> + __u16 level;
Just u16 outside of headers exposed to the userspace.
Adjusted and applied, thank you.
--
Dmitry