Return-Path: Date: Fri, 6 May 2011 10:45:30 +0200 From: Antonio Ospite To: Bastien Nocera Cc: linux-bluetooth@vger.kernel.org, linux-input@vger.kernel.org, Jim Paris , Ranulf Doswell , "Pascal A . Brisset" , Marcin Tolysz , Christian Birchinger , Filipe Lopes , Alan Ott , Mikko Virkkila Subject: Re: [PATCH v2 3/3] Add sixaxis plugin: USB pairing and LEDs settings Message-Id: <20110506104530.35eabd49.ospite@studenti.unina.it> In-Reply-To: <1304644488.16101.28.camel@novo.hadess.net> References: <1298628292-8842-1-git-send-email-ospite@studenti.unina.it> <1298628292-8842-4-git-send-email-ospite@studenti.unina.it> <1304644488.16101.28.camel@novo.hadess.net> Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Fri__6_May_2011_10_45_30_+0200_QPSj8khFdfIGUMbM" Sender: linux-bluetooth-owner@vger.kernel.org List-ID: --Signature=_Fri__6_May_2011_10_45_30_+0200_QPSj8khFdfIGUMbM Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, 06 May 2011 02:14:38 +0100 Bastien Nocera wrote: > On Fri, 2011-02-25 at 11:04 +0100, Antonio Ospite wrote: > > + [AC_LANG_PROGRAM([[ > > + #include > > + #include > > + #if ! (defined(HIDIOCSFEATURE) && > > defined(HIDIOCGFEATURE)) > > + #error "HIDIOCSFEATURE and > > HIDIOCGFEATURE are required (linux-libc-dev >=3D 2.6.3x)" > > + #endif > > + ]],=20 >=20 > The only part of the patch I have a problem with is this one. >=20 > I'd rather the code had: > #ifndef HIDIOCSFEATURE > #define HIDIOCSFEATURE bleh > #endif >=20 > And gracefully handled the ioctl not being available on the running > kernel (eg. "Not handling plugged in Sixaxis joypad because the kernel > lacks HIDIOCSFEATURE support"). > I'll give that a try a report back my opinion. Thanks. > The rest looks fine, and I'll be testing whether my Fedora 15 kernel has > the feature merged in yet (which would make testing your code much > easier). >=20 Regards, Antonio --=20 Antonio Ospite http://ao2.it PGP public key ID: 0x4553B001 A: Because it messes up the order in which people normally read text. See http://en.wikipedia.org/wiki/Posting_style Q: Why is top-posting such a bad thing? --Signature=_Fri__6_May_2011_10_45_30_+0200_QPSj8khFdfIGUMbM Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk3DtSoACgkQ5xr2akVTsAHI/QCfY9uWp4FPV5lU/EqLYyeKGcWm f6EAn0wE5wBrDUQA0mgZ86qqEFcw2Yj/ =EsiS -----END PGP SIGNATURE----- --Signature=_Fri__6_May_2011_10_45_30_+0200_QPSj8khFdfIGUMbM--