Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753558AbYKSM6v (ORCPT ); Wed, 19 Nov 2008 07:58:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752767AbYKSM6m (ORCPT ); Wed, 19 Nov 2008 07:58:42 -0500 Received: from styx.suse.cz ([82.119.242.94]:40495 "EHLO mail.suse.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752470AbYKSM6l (ORCPT ); Wed, 19 Nov 2008 07:58:41 -0500 Date: Wed, 19 Nov 2008 13:58:40 +0100 (CET) From: Jiri Kosina To: Rafi Rubin cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] n-trig digitizer quirks In-Reply-To: <49232910.2030309@seas.upenn.edu> Message-ID: References: <49232910.2030309@seas.upenn.edu> User-Agent: Alpine 1.10 (LNX 962 2008-03-14) 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 Content-Length: 1629 Lines: 57 On Tue, 18 Nov 2008, Rafi Rubin wrote: > +static int ntrig_input_mapping(struct hid_device *hdev, struct hid_input *hi, > + struct hid_field *field, struct hid_usage *usage, > + unsigned long **bit, int *max) > +{ > + if ( (usage->hid & HID_USAGE_PAGE) == HID_UP_DIGITIZER && > + (usage->hid & 0xff) == 0x47) { > + nt_map_key_clear(BTN_TOOL_DOUBLETAP); > + return 1; > + } > + return 0; > +} Could you please keep standard linux-kernel indenting style? I.e. something like static int ntrig_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) { if ((usage->hid & HID_USAGE_PAGE) == HID_UP_DIGITIZER && (usage->hid & 0xff) == 0x47) { nt_map_key_clear(BTN_TOOL_DOUBLETAP); return 1; } return 0; } > + > +static int ntrig_input_mapped(struct hid_device *hdev, struct hid_input *hi, > + struct hid_field *field, struct hid_usage *usage, > + unsigned long **bit, int *max) > +{ > + unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); This could be removed, as it is never used, right? > +HID_COMPAT_LOAD_DRIVER(ntrig); Also please don't forget to add HID_COMPAT_CALL_DRIVER() entry into hid-dummy.c Besides that it looks OK, so please resend with the above issues fixed, and I'll queue it in my tree. Thanks, -- Jiri Kosina SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/