mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: x0r <x0r@dv-life.ru>
Cc: Jonathan Cameron <kernel@jic23.retrosnub.co.uk>,
	linux-kernel@vger.kernel.org, linux-input@vger.kernel.org,
	Jiri Kosina <jkosina@suse.cz>
Subject: Re: [PATCH] hid: ACRUX game controller force feedback support
Date: Thu, 15 Jul 2010 09:57:06 -0700	[thread overview]
Message-ID: <20100715165706.GA20371@core.coreip.homeip.net> (raw)
In-Reply-To: <4C3ED9C4.5080800@jic23.retrosnub.co.uk>

Hi,

On Thu, Jul 15, 2010 at 10:49:56AM +0100, Jonathan Cameron wrote:
> > +
> > +static int ax_probe(struct hid_device *hdev, const struct hid_device_id *id)
> > +{
> > +    int ret;
> > +
> > +    dev_dbg(&hdev->dev, "ACRUX HID hardware probe...");
> > +
> > +    ret = hid_parse(hdev);
> > +    if (ret) {
> > +        dev_err(&hdev->dev, "parse failed\n");
> > +        goto err;
> > +    }
> > +
> > +    ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT&  ~HID_CONNECT_FF);
> > +    if (ret) {
> > +        dev_err(&hdev->dev, "hw start failed\n");
> > +        goto err;
> > +    }
> > +
> > +    axff_init(hdev);

Error handling for axff_init() too please.

> > 
> > --- a/drivers/hid/Kconfig
> > +++ b/drivers/hid/Kconfig
> > @@ -68,6 +68,21 @@
> >      ---help---
> >      Support for A4 tech X5 and WOP-35 / Trust 450L mice.
> > 
> > +config HID_ACRUX
> > +    tristate "ACRUX support" if EMBEDDED
> > +    depends on USB_HID
> > +    default !EMBEDDED
> > +    ---help---
> > +    Say Y here if you have ACRUX game controllers.
> > +
> > +config ACRUX_FF
> > +    bool "ACRUX force feedback support"
> > +    depends on HID_ACRUX
> > +    select INPUT_FF_MEMLESS
> > +    ---help---
> > +    Say Y here if you want to enable force feedback support for ACRUX
> > +    game controllers.
> > +

Why 2 separate CONFIG options? I do not see any special handling except
for force feedback control itself; doesn't the device work with vanilla
kernel (sans FF of course)?

I also have a string suspicion the file is indented with 4 spaces, please
make sure it is indented with tabs.

And since it is HID device please make sure you copy Jiri Kosina
(CCed).

Thanks.

-- 
Dmitry

      reply	other threads:[~2010-07-15 16:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-15  2:54 x0r
2010-07-15  9:49 ` Jonathan Cameron
2010-07-15 16:57   ` Dmitry Torokhov [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=20100715165706.GA20371@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=jkosina@suse.cz \
    --cc=kernel@jic23.retrosnub.co.uk \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=x0r@dv-life.ru \
    /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

all inboxes | Powered by JetHome®