From: "José Expósito" <jose.exposito89@gmail.com>
To: "Barnabás Pőcze" <pobrn@protonmail.com>
Cc: jikos@kernel.org, benjamin.tissoires@redhat.com,
spbnick@gmail.com, linux-input@vger.kernel.org,
linux-kernel@vger.kernel.org, Mia Kanashi <chad@redpilled.dev>,
Andreas Grosse <andig.mail@t-online.de>
Subject: Re: [PATCH] HID: uclogic: Add support for XP-PEN Deco LW
Date: Fri, 28 Oct 2022 10:16:56 +0200 [thread overview]
Message-ID: <20221028081656.GA19766@elementary> (raw)
In-Reply-To: <2m7M7XFEGHGOu6Le-GK_9kDuuA3BltmE1I17zDsok382TFmgO2oDamLv7cWcXjYLdzdgwQli7Qe98xoe0tuVc4bg7sRbFG2LFZ6iYn0s3Fk=@protonmail.com>
Hi Barnabás,
Thanks for reviewing the patch.
On Thu, Oct 27, 2022 at 09:32:24PM +0000, Barnabás Pőcze wrote:
> Hi
>
>
> 2022. október 27., csütörtök 23:10 keltezéssel, José Expósito írta:
>
> > [...]
> > +/**
> > + * uclogic_params_ugee_v2_has_battery() - check whether a UGEE v2 device has
> > + * battery or not.
> > + * @hdev: The HID device of the tablet interface.
> > + *
> > + * Returns:
> > + * True if the device has battery, false otherwise.
> > + */
> > +static bool uclogic_params_ugee_v2_has_battery(struct hid_device *hdev)
> > +{
> > + /* The XP-PEN Deco LW vendor, product and version are identical to the
> > + * Deco L. The only difference reported by their firmware is the product
> > + * name. Add a quirk to support battery reporting on the wireless
> > + * version.
> > + */
> > + if (hdev->vendor == USB_VENDOR_ID_UGEE &&
> > + hdev->product == USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO_L) {
> > + struct usb_device *udev = hid_to_usb_dev(hdev);
> > + const char *lw_name = "Deco LW";
> > +
> > + if (strncmp(udev->product, lw_name, strlen(lw_name)) == 0)
>
> Please use `strstarts()` here instead.
Good point, I'll send v2 in a minute with this change.
Jose
>
> > + return true;
> > + }
> > +
> > + return false;
> > +}
> > [...]
>
>
> Regards,
> Barnabás Pőcze
prev parent reply other threads:[~2022-10-28 8:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-27 21:10 [PATCH] HID: uclogic: Add support for XP-PEN Deco LW José Expósito
2022-10-27 21:32 ` Barnabás Pőcze
2022-10-28 8:16 ` José Expósito [this message]
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=20221028081656.GA19766@elementary \
--to=jose.exposito89@gmail.com \
--cc=andig.mail@t-online.de \
--cc=benjamin.tissoires@redhat.com \
--cc=chad@redpilled.dev \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pobrn@protonmail.com \
--cc=spbnick@gmail.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.