From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] net: usbnet: make driver_info const Date: Tue, 02 Oct 2018 22:23:04 -0700 (PDT) Message-ID: <20181002.222304.276597319093873023.davem@davemloft.net> References: <20181001160243.10428-1-ben.dooks@codethink.co.uk> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, linux-kernel@lists.codethink.co.uk, oneukum@suse.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, ben-linux@fluff.org To: ben.dooks@codethink.co.uk Return-path: In-Reply-To: <20181001160243.10428-1-ben.dooks@codethink.co.uk> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Ben Dooks Date: Mon, 1 Oct 2018 17:02:43 +0100 > From: Ben Dooks > > The driver_info field that is used for describing each of the usb-net > drivers using the usbnet.c core all declare their information as const > and the usbnet.c itself does not try and modify the struct. > > It is therefore a good idea to make this const in the usbnet.c structure > in case anyone tries to modify it. > > Signed-off-by: Ben Dooks > Signed-off-by: Ben Dooks Applied.