Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2521886imu; Thu, 29 Nov 2018 06:21:41 -0800 (PST) X-Google-Smtp-Source: AFSGD/VlrSnCAko+ji+DoZVIMSfW5UnZ0lToYP5wZYdCDKtKuKRbP+MrczfIj5hG4Av0aCI8OYHU X-Received: by 2002:a62:c28e:: with SMTP id w14mr1558430pfk.115.1543501301113; Thu, 29 Nov 2018 06:21:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543501301; cv=none; d=google.com; s=arc-20160816; b=ffq7K0rWs9qhfzAX3afekbdAeN1GffhtJ/ITJPHvmSZn215Z7NCT3VvRnC0S/iQRxE Ha2JSrF2l5Tqp2bToaO+LuDsZgFUl6GB7lubtRZ/idZUXCAZWGqJbSdCP267I1C3dbDs yTwNOjTdxvyf1rVnL/oXkgFHMu2oE8OV1jFt1slkAnbQwMsWsaDCA+DyQd5mv+A1Eigp epSfD4ZrYxGh5/YAz8x6/+rz7NoYuDxXirg1+8gjcqL5rRIYOzs1xu9fLEyswKxjQQCB te3nuMUM1o0Y81ac3rD9/KCFJbI4Ly8Voza5W8GSzjjbgW6cOj0j7cGeIwgmdYbW55xf WWbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=PJ8S8mqYigzDFLkSyugNUsbjPuHTOmbTgFEeQaFIkeU=; b=dYSJ6fUz7ayQfgxAUxU+CjmS3eHchIGruUDBMN1hQuqi5X7PGeJs7ubW97xULQda2N iAJzTtAuSqi58W3B17SLJTgXyEsh7Ky5GE//teH5nfKpCIeDhbvGsIJuqEX8kZsucvzC jiJdpckLFlmoXmleu6qWeFO7nafxDbZzxyYt3CoTZSe21nTgugZrTnzZ8C8Pm/NL3unA 8/huto9mhtd5Jta6PtldzmDclZdogNPjvWoWwPoTrPvXxmQSh5sjD71FIRFwi8r6XIVe +Gyr5lAJfFwIIU9xmMKd7XBFZsxPOkrNGjxJctFHlMwUGE1NO/k/vGfhum3jrPmvY4FR nMjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZVN2nlwr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b14si2287070pfc.156.2018.11.29.06.21.25; Thu, 29 Nov 2018 06:21:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZVN2nlwr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730936AbeK3BYc (ORCPT + 99 others); Thu, 29 Nov 2018 20:24:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:47340 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730927AbeK3BYb (ORCPT ); Thu, 29 Nov 2018 20:24:31 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8AA66205C9; Thu, 29 Nov 2018 14:19:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543501141; bh=glurfgj/GTTTGsVvktj2sl8hGn0/5+xi9kuUpc4dIqQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZVN2nlwrhyDmLS8mC+epwKugPx/PN6ARocAN+2qvcJRJGBmWN2JrKFHdu9r/Khtck myXgm+YyhNVxj6L5goM8wxboJt68TrcSnbfVMKnekaq7GEVqCDmWT17YYPomHiyjNc fJqjEgaJ09EM2/nvRdFwBjyQFUqrrTyMhsIK0UMk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arvind Yadav , Dmitry Torokhov , Sasha Levin Subject: [PATCH 4.4 59/86] Input: xpad - constify usb_device_id Date: Thu, 29 Nov 2018 15:12:24 +0100 Message-Id: <20181129140115.001862377@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181129140109.832117862@linuxfoundation.org> References: <20181129140109.832117862@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 94aef061c796d3d47f1a2eed41e651ffaaade402 ] usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/input/joystick/xpad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index 298a6ba51411..2578a7677040 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -408,7 +408,7 @@ static const signed short xpad_abs_triggers[] = { #define XPAD_XBOXONE_VENDOR(vend) \ { XPAD_XBOXONE_VENDOR_PROTOCOL(vend, 208) } -static struct usb_device_id xpad_table[] = { +static const struct usb_device_id xpad_table[] = { { USB_INTERFACE_INFO('X', 'B', 0) }, /* X-Box USB-IF not approved class */ XPAD_XBOX360_VENDOR(0x044f), /* Thrustmaster X-Box 360 controllers */ XPAD_XBOX360_VENDOR(0x045e), /* Microsoft X-Box 360 controllers */ -- 2.17.1