From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Chris Morgan <macroalpha82@gmail.com>
Cc: linux-input@vger.kernel.org, contact@artur-rojek.eu,
hdegoede@redhat.com, paul@crapouillou.net,
peter.hutterer@who-t.net, svv@google.com, biswarupp@google.com,
Chris Morgan <macromorgan@hotmail.com>
Subject: Re: [PATCH v3] Input: adc-joystick: Handle inverted axes
Date: Fri, 19 Jan 2024 00:29:54 -0800 [thread overview]
Message-ID: <ZaozAsSblybdoeEK@google.com> (raw)
In-Reply-To: <20240115192752.266367-1-macroalpha82@gmail.com>
Hi Chris,
On Mon, Jan 15, 2024 at 01:27:52PM -0600, Chris Morgan wrote:
>
> +static int adc_joystick_invert(struct input_dev *dev,
> + unsigned int axis, int val)
> +{
> + int min = dev->absinfo[axis].minimum;
> + int max = dev->absinfo[axis].maximum;
I changed this to input_abs_get_[min|max](dev, axis) to avoid peeking
into absinfo and applied.
Thanks.
--
Dmitry
next prev parent reply other threads:[~2024-01-19 8:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-15 19:27 [PATCH v3] Input: adc-joystick: Handle inverted axes Chris Morgan
2024-01-19 8:29 ` Dmitry Torokhov [this message]
2024-01-20 9:10 ` Dmitry Torokhov
2024-06-07 19:31 ` Dmitry Torokhov
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=ZaozAsSblybdoeEK@google.com \
--to=dmitry.torokhov@gmail.com \
--cc=biswarupp@google.com \
--cc=contact@artur-rojek.eu \
--cc=hdegoede@redhat.com \
--cc=linux-input@vger.kernel.org \
--cc=macroalpha82@gmail.com \
--cc=macromorgan@hotmail.com \
--cc=paul@crapouillou.net \
--cc=peter.hutterer@who-t.net \
--cc=svv@google.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.