From: Dmitry Torokhov Subject: Re: [PATCH] hid: ACRUX game controller force feedback support Date: Thu, 15 Jul 2010 09:57:06 -0700 Message-ID: <20100715165706.GA20371@core.coreip.homeip.net> References: <4C3E7850.2010802@dv-life.ru> <4C3ED9C4.5080800@jic23.retrosnub.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-px0-f174.google.com ([209.85.212.174]:64063 "EHLO mail-px0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933757Ab0GOQ5V (ORCPT ); Thu, 15 Jul 2010 12:57:21 -0400 Content-Disposition: inline In-Reply-To: <4C3ED9C4.5080800@jic23.retrosnub.co.uk> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: x0r Cc: Jonathan Cameron , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Jiri Kosina 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