From: Marcus Folkesson <marcus.folkesson@gmail.com>
To: Randy Dunlap <rdunlap@infradead.org>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Jonathan Corbet <corbet@lwn.net>,
Tomohiro Yoshidomi <sylph23k@gmail.com>,
David Herrmann <dh.herrmann@gmail.com>,
Philippe Ombredanne <pombredanne@nexb.com>,
Kate Stewart <kstewart@linuxfoundation.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-input@vger.kernel.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4] input: pxrc: new driver for PhoenixRC Flight Controller Adapter
Date: Wed, 17 Jan 2018 20:45:16 +0100 [thread overview]
Message-ID: <20180117194516.GC10949@gmail.com> (raw)
In-Reply-To: <9607d51a-4382-396c-a4bd-46bbb24ba46e@infradead.org>
[-- Attachment #1: Type: text/plain, Size: 1570 bytes --]
Hi Randy!
On Wed, Jan 17, 2018 at 11:13:43AM -0800, Randy Dunlap wrote:
> On 01/17/2018 11:07 AM, Marcus Folkesson wrote:
> > This driver let you plug in your RC controller to the adapter and
> > use it as input device in various RC simulators.
> >
> > Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
> > ---
>
> > diff --git a/drivers/input/joystick/Kconfig b/drivers/input/joystick/Kconfig
> > index f3c2f6ea8b44..18ab6dafff41 100644
> > --- a/drivers/input/joystick/Kconfig
> > +++ b/drivers/input/joystick/Kconfig
> > @@ -351,4 +351,13 @@ config JOYSTICK_PSXPAD_SPI_FF
> >
> > To drive rumble motor a dedicated power supply is required.
> >
> > +config JOYSTICK_PXRC
> > + tristate "PhoenixRC Flight Controller Adapter"
> > + depends on USB_ARCH_HAS_HCD
> > + select USB
>
> Drop the (first) depends and change "select USB" to "depends on USB".
>
> Argh, there are lots of input/ drivers that do that. That's bad/wrong.
> A driver should not select (enable) an entire subsystem. If the user had
> the subsystem disabled, it should stay that way.
>
> Dmitry, you can expect some patches...
>
Hah, of course it should be "depends on" :-)
Other drivers fooled me...
Should I fix the other drivers too when I'm on it, or do you?
> > + help
> > + Say Y here if you want to use the PhoenixRC Flight Controller Adapter.
> > +
> > + To compile this driver as a module, choose M here: the
> > + module will be called pxrc.
> > endif
>
> --
> ~Randy
Best regards
Marcus Folkesson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2018-01-17 19:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-17 19:07 [PATCH v4] input: pxrc: new driver for PhoenixRC Flight Controller Adapter Marcus Folkesson
2018-01-17 19:13 ` Randy Dunlap
2018-01-17 19:45 ` Marcus Folkesson [this message]
2018-01-17 20:12 ` Randy Dunlap
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=20180117194516.GC10949@gmail.com \
--to=marcus.folkesson@gmail.com \
--cc=corbet@lwn.net \
--cc=dh.herrmann@gmail.com \
--cc=dmitry.torokhov@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=kstewart@linuxfoundation.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pombredanne@nexb.com \
--cc=rdunlap@infradead.org \
--cc=sylph23k@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.