Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752120AbdHJJIc (ORCPT ); Thu, 10 Aug 2017 05:08:32 -0400 Received: from mx2.suse.de ([195.135.220.15]:52060 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750909AbdHJJIb (ORCPT ); Thu, 10 Aug 2017 05:08:31 -0400 Date: Thu, 10 Aug 2017 11:08:28 +0200 (CEST) From: Jiri Kosina X-X-Sender: jkosina@pobox.suse.cz To: Arvind Yadav cc: benjamin.tissoires@redhat.com, linux-usb@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] constify hid usb_device_id and fix space before '[' error In-Reply-To: <1502302895-30181-1-git-send-email-arvind.yadav.cs@gmail.com> Message-ID: References: <1502302895-30181-1-git-send-email-arvind.yadav.cs@gmail.com> User-Agent: Alpine 2.20 (LSU 67 2015-01-07) 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: 296 Lines: 11 On Wed, 9 Aug 2017, Arvind Yadav wrote: > 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. Applied to for-4.14/upstream. -- Jiri Kosina SUSE Labs