From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756528Ab0BCOmf (ORCPT ); Wed, 3 Feb 2010 09:42:35 -0500 Received: from cantor.suse.de ([195.135.220.2]:36235 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756359Ab0BCOmd (ORCPT ); Wed, 3 Feb 2010 09:42:33 -0500 Date: Wed, 3 Feb 2010 15:42:32 +0100 (CET) From: Jiri Kosina To: Marcel Holtmann Cc: Bastien Nocera , Michael Poole , "Gunn, Brian" , Ping , linux-kernel@vger.kernel.org, BlueZ development Subject: Re: [PATCH 3/3] HID: Enable Sixaxis controller over Bluetooth In-Reply-To: <1265206650.31341.113.camel@localhost.localdomain> Message-ID: References: <1264783166.29532.5302.camel@localhost.localdomain> <87iqakifm8.fsf@troilus.org> <1264860663.29532.7887.camel@localhost.localdomain> <87bpg7glf7.fsf@troilus.org> <1265190440.32444.8417.camel@localhost.localdomain> <1265206650.31341.113.camel@localhost.localdomain> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 3 Feb 2010, Marcel Holtmann wrote: > Hi Jiri, > > > Now that hid_output_raw_report works, port the PS3 Sixaxis > > Bluetooth quirk from user-space, into kernel-space. > > > > Signed-off-by: Bastien Nocera > > Signed-off-by: Jiri Kosina > > Acked-by: Marcel Holtmann > > > - ret = sony_set_operational(hdev); > > + if (hdev->bus == BUS_USB) > > + ret = sony_set_operational(hdev); > > + else if (hdev->bus == BUS_BLUETOOTH) > > + ret = sony_set_operational_bt(hdev); > > + else > > + ret = 0; > > + > > I would do sony_set_operational_usb() and sony_set_operational_bt() and > also turn this into a switch statement for better readability. Fixed and applied. Thanks, -- Jiri Kosina SUSE Labs, Novell Inc.