linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lukas Bulwahn <lukas.bulwahn@gmail.com>
To: Dario Pagani <dario.pagani.146@gmail.com>,
	Kim Kuparinen <kimi.h.kuparinen@gmail.com>,
	Jiri Kosina <jkosina@suse.cz>
Cc: linux-input@vger.kernel.org,
	Benjamin Tissoires <benjamin.tissoires@redhat.com>
Subject: Re: Kconfig issue in commit c49c33637802 ("HID: support for initialization of some Thrustmaster wheels")
Date: Tue, 10 Aug 2021 12:25:41 +0200	[thread overview]
Message-ID: <CAKXUXMyM7MRJVT8sLFBiMcV9UMgxYzb9+x9owr_6ZWv8JFUyKA@mail.gmail.com> (raw)
In-Reply-To: <CAKXUXMx6dByO03f3dX0X5zjvQp0j2AhJBg0vQFDmhZUhtKxRxw@mail.gmail.com>

On Tue, Aug 10, 2021 at 7:04 AM Lukas Bulwahn <lukas.bulwahn@gmail.com> wrote:
>
> Dear Dario, dear Kim, dear Jiri,
>
> In commit c49c33637802 ("HID: support for initialization of some
> Thrustmaster wheels"), you have added in ./drivers/hid/Makefile:
>
> obj-$(CONFIG_HID_TMINIT)       += hid-tminit.o
>
> and drivers/hid/hid-quirks.c:
>
> +#if IS_ENABLED(CONFIG_HID_TMINIT)
> +       { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb65d) },
> +#endif
>
> However, there is no config HID_TMINIT defined in Kconfig, nor a file
> hid-tminit.c.
>
> So, this above is all dead code.
>
> Is this just some unintended leftover from refactoring, or are we
> missing a config and the hid-tminit file?
>
> I am happy to provide a patch, once it is what was intended here.
>
> E.g., just drop the line in the Makefile and add the HID_USB_DEVICE
> declaration to the CONFIG_HID_THRUSTMASTER ifdef block---if that
> works?
>

On Tue, Aug 10, 2021 at 7:34 AM Kim Kuparinen
<kimi.h.kuparinen@gmail.com> wrote:
>
> hid-tminit.c was renamed to hid-thrustmaster.c, so seems like a refactoring artefact. The changes you suggested sound like what was intended, though I haven't personally tested them yet.
>

Kim, Dario, I have created the patch and sent it out on the
linux-input mailing list; see here:

https://lore.kernel.org/linux-input/20210810102148.9764-1-lukas.bulwahn@gmail.com/

You might just apply and test it.

Lukas

      reply	other threads:[~2021-08-10 10:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-10  5:04 Kconfig issue in commit c49c33637802 ("HID: support for initialization of some Thrustmaster wheels") Lukas Bulwahn
2021-08-10 10:25 ` Lukas Bulwahn [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=CAKXUXMyM7MRJVT8sLFBiMcV9UMgxYzb9+x9owr_6ZWv8JFUyKA@mail.gmail.com \
    --to=lukas.bulwahn@gmail.com \
    --cc=benjamin.tissoires@redhat.com \
    --cc=dario.pagani.146@gmail.com \
    --cc=jkosina@suse.cz \
    --cc=kimi.h.kuparinen@gmail.com \
    --cc=linux-input@vger.kernel.org \
    /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).