From patchwork Sun Jan 10 16:59:22 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TsODwqltZXRoIE3Dg8KhcnRvbg==?= X-Patchwork-Id: 72055 X-Patchwork-Delegate: jikos@jikos.cz Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0AH0qO4017738 for ; Sun, 10 Jan 2010 17:00:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753737Ab0AJQ7x (ORCPT ); Sun, 10 Jan 2010 11:59:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753723Ab0AJQ7u (ORCPT ); Sun, 10 Jan 2010 11:59:50 -0500 Received: from mail02a.mail.t-online.hu ([84.2.40.7]:65264 "EHLO mail02a.mail.t-online.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753708Ab0AJQ7t (ORCPT ); Sun, 10 Jan 2010 11:59:49 -0500 Received: from [192.168.1.64] (dsl5402C42F.pool.t-online.hu [84.2.196.47]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail02a.mail.t-online.hu (Postfix) with ESMTPSA id 0E92E25BD20; Sun, 10 Jan 2010 17:57:31 +0100 (CET) Message-ID: <4B4A076A.8020207@freemail.hu> Date: Sun, 10 Jan 2010 17:59:22 +0100 From: =?UTF-8?B?TsOpbWV0aCBNw6FydG9u?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; hu-HU; rv:1.8.1.21) Gecko/20090402 SeaMonkey/1.1.16 MIME-Version: 1.0 To: Jiri Kosina CC: linux-input@vger.kernel.org, LKML , Julia Lawall , cocci@diku.dk Subject: [PATCH] hid: make USB device id constant X-DCC-mail.t-online.hu-Metrics: mail02a.mail.t-online.hu 32721; Body=5 Fuz1=5 Fuz2=5 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org diff -u -p a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c --- a/drivers/hid/usbhid/hid-core.c 2010-01-07 19:08:40.000000000 +0100 +++ b/drivers/hid/usbhid/hid-core.c 2010-01-08 18:55:16.000000000 +0100 @@ -1342,7 +1342,7 @@ static int hid_reset_resume(struct usb_i #endif /* CONFIG_PM */ -static struct usb_device_id hid_usb_ids [] = { +static const struct usb_device_id hid_usb_ids[] = { { .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS, .bInterfaceClass = USB_INTERFACE_CLASS_HID }, { } /* Terminating entry */