From patchwork Sun Jan 10 10:51:39 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: 71996 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 o0AAwap5003903 for ; Sun, 10 Jan 2010 10:58:36 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752872Ab0AJK6f (ORCPT ); Sun, 10 Jan 2010 05:58:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753246Ab0AJK6f (ORCPT ); Sun, 10 Jan 2010 05:58:35 -0500 Received: from mail01a.mail.t-online.hu ([84.2.40.6]:62470 "EHLO mail01a.mail.t-online.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752872Ab0AJK6f (ORCPT ); Sun, 10 Jan 2010 05:58:35 -0500 X-Greylist: delayed 411 seconds by postgrey-1.27 at vger.kernel.org; Sun, 10 Jan 2010 05:58:35 EST 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 mail01a.mail.t-online.hu (Postfix) with ESMTPSA id C76BF7979FD; Sun, 10 Jan 2010 11:49:06 +0100 (CET) Message-ID: <4B49B13B.8070604@freemail.hu> Date: Sun, 10 Jan 2010 11:51:39 +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: Dmitry Torokhov , Daniel Ritz CC: linux-input@vger.kernel.org, LKML , Julia Lawall , cocci@diku.dk Subject: [PATCH] input: make USB device id constant X-DCC-mail.t-online.hu-Metrics: mail01a.mail.t-online.hu 32711; Body=6 Fuz1=6 Fuz2=6 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org diff -u -p a/drivers/input/tablet/gtco.c b/drivers/input/tablet/gtco.c --- a/drivers/input/tablet/gtco.c 2009-12-03 04:51:21.000000000 +0100 +++ b/drivers/input/tablet/gtco.c 2010-01-08 19:11:02.000000000 +0100 @@ -92,7 +92,7 @@ Scott Hill shill@gtcocalcomp.com /* DATA STRUCTURES */ /* Device table */ -static struct usb_device_id gtco_usbid_table [] = { +static const struct usb_device_id gtco_usbid_table[] = { { USB_DEVICE(VENDOR_ID_GTCO, PID_400) }, { USB_DEVICE(VENDOR_ID_GTCO, PID_401) }, { USB_DEVICE(VENDOR_ID_GTCO, PID_1000) }, diff -u -p a/drivers/input/touchscreen/usbtouchscreen.c b/drivers/input/touchscreen/usbtouchscreen.c --- a/drivers/input/touchscreen/usbtouchscreen.c 2010-01-07 19:08:40.000000000 +0100 +++ b/drivers/input/touchscreen/usbtouchscreen.c 2010-01-08 19:17:10.000000000 +0100 @@ -144,7 +144,7 @@ enum { .bInterfaceClass = USB_INTERFACE_CLASS_HID, \ .bInterfaceProtocol = USB_INTERFACE_PROTOCOL_MOUSE -static struct usb_device_id usbtouch_devices[] = { +static const struct usb_device_id usbtouch_devices[] = { #ifdef CONFIG_TOUCHSCREEN_USB_EGALAX /* ignore the HID capable devices, handled by usbhid */ {USB_DEVICE_HID_CLASS(0x0eef, 0x0001), .driver_info = DEVTYPE_IGNORE},