From: Andreas Kemnade <andreas@kemnade.info>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: dmitry.torokhov@gmail.com, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, u.kleine-koenig@pengutronix.de,
hdegoede@redhat.com, siebren.vroegindeweij@hotmail.com,
linux-input@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 3/3] Input: ektf2127 - add ektf2232 support
Date: Mon, 6 May 2024 18:21:11 +0200 [thread overview]
Message-ID: <20240506182111.3c6673a0@aktux> (raw)
In-Reply-To: <CAHp75Vdnwrxw96prr9hyLdZ2u6t1uNcj6pyxCp52UoVOpatTpg@mail.gmail.com>
On Mon, 6 May 2024 15:05:52 +0300
Andy Shevchenko <andy.shevchenko@gmail.com> wrote:
> From: Andy Shevchenko <andy.shevchenko@gmail.com>
> To: Andreas Kemnade <andreas@kemnade.info>
> Cc: dmitry.torokhov@gmail.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, u.kleine-koenig@pengutronix.de, hdegoede@redhat.com, siebren.vroegindeweij@hotmail.com, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
> Subject: Re: [PATCH v2 3/3] Input: ektf2127 - add ektf2232 support
> Date: Mon, 6 May 2024 15:05:52 +0300
>
> On Mon, May 6, 2024 at 12:48 AM Andreas Kemnade <andreas@kemnade.info> wrote:
> >
> > The chip is similar, but has status bits at different positions,
> > so use the correct bits.
>
> ...
>
> > @@ -46,6 +47,11 @@ struct ektf2127_ts {
> > struct input_dev *input;
> > struct gpio_desc *power_gpios;
> > struct touchscreen_properties prop;
> > + int status_shift;
> > +};
> > +
> > +struct ektf2127_i2c_chip_data {
> > + int status_shift;
> > };
> >
> > static void ektf2127_parse_coordinates(const u8 *buf, unsigned int touch_count,
>
> I'm wondering if you are using --histogram diff algo when preparing the patches.
No, I am not using that, it seems to not make that chunk nicer.
Yes, we want
+ int status_shift;
};
+
+struct ektf2127_i2c_chip_data {
+ int status_shift;
+};
But that is not shorter or simpler, just more readable.
Regards,
Andreas
next prev parent reply other threads:[~2024-05-06 16:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-05 21:47 [PATCH v2 0/3] Input: Add ektf2232 support Andreas Kemnade
2024-05-05 21:47 ` [PATCH v2 1/3] dt-bindings: touchscreen: convert elan,ektf2127 to json-schema Andreas Kemnade
2024-05-06 6:24 ` Krzysztof Kozlowski
2024-05-05 21:47 ` [PATCH v2 2/3] dt-bindings: touchscreen: elan,ektf2127: Add EKTF2232 Andreas Kemnade
2024-05-06 6:24 ` Krzysztof Kozlowski
2024-05-05 21:47 ` [PATCH v2 3/3] Input: ektf2127 - add ektf2232 support Andreas Kemnade
2024-05-06 12:05 ` Andy Shevchenko
2024-05-06 16:21 ` Andreas Kemnade [this message]
2024-05-06 18:43 ` Andy Shevchenko
2024-05-06 20:29 ` Andreas Kemnade
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=20240506182111.3c6673a0@aktux \
--to=andreas@kemnade.info \
--cc=andy.shevchenko@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=hdegoede@redhat.com \
--cc=krzk+dt@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=siebren.vroegindeweij@hotmail.com \
--cc=u.kleine-koenig@pengutronix.de \
/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;
as well as URLs for NNTP newsgroup(s).