Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp253275imu; Wed, 7 Nov 2018 16:42:28 -0800 (PST) X-Google-Smtp-Source: AJdET5fO0VVi6HD4KsweAdhj9mFNutjVa2aMQKO23heyXPJnuZAvrmANe2RRewHvwLyAe0lp+p6O X-Received: by 2002:a63:cd17:: with SMTP id i23mr2082727pgg.13.1541637748280; Wed, 07 Nov 2018 16:42:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541637748; cv=none; d=google.com; s=arc-20160816; b=vDDGiiqOtu4N3foSOQXUTrr5bclgRRhx2qUxz3+9UHuWj4J3OrnTOMA+0gfsV/JPsY hBVUtboSEI6xgUuYRTqra5nFjWOSuNYf9XixlaTVNGk+h3lPAqBAxS5TpcUh5qoVRN86 z7s4OQJA3pBi4VipONt0uwItUK07X2GUutXpZgy2h87gJR6MszdxbSAVdXcy4au8aPjT p2bQ+eh5jQ1md+rce7JMtDPaQY8VDfEu1N1/R2Ttm3P2k3X77PMs96hHcB46gaKoOGQ8 1Jl3sqpYamy1sPcFquk8Nm4OChZAmsBA8s+2rc9fSGWyAaOCTM7OUx7ZKYPgAm0eVA5p UJ/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:subject:in-reply-to:date :content-transfer-encoding:mime-version:cc:to:from:message-id :dkim-signature:dkim-signature; bh=CpdeR+5f5k+fLW+3h2NLtz/RbLYBe2uG5dh0Y/J1mLI=; b=RI2a1Sf3ofWFgDEVDY6ZMAMBKN7WqAoDyH1XhmNCvCcIcKLilNeSCgbYs/XFz5TpX+ fGE3wNBUfo1DnAsdd+sScdZsbZE133RrQ2QZu+pSY5n9E4rTFvqYSHEQWKmvFLYSW7Uc YIk7lQJ8Kmob9/3hjYeBaumLRaTZVoaQ+cXIHGSMXlAABvSYg0j60rO6Q+uoNpg80ZRK ipUE6vLuipu6nSym6ZESy0CmesjczDDvKu2Hi/95GcUJ9gQxr68ginXfeFVQi/ZE1cJL lWxj+caeXmp97qZX8aNjOLfMGBCnVCUpXUrZ3L11G1+sqpSAdgm1waSXZceQM54uABZI UiAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm1 header.b=ejM+C0I7; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=wdaPGbVE; 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 y191si2131706pgd.4.2018.11.07.16.42.13; Wed, 07 Nov 2018 16:42:28 -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=@aj.id.au header.s=fm1 header.b=ejM+C0I7; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=wdaPGbVE; 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 S1728359AbeKHKOl (ORCPT + 99 others); Thu, 8 Nov 2018 05:14:41 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:47967 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727786AbeKHKOl (ORCPT ); Thu, 8 Nov 2018 05:14:41 -0500 X-Greylist: delayed 391 seconds by postgrey-1.27 at vger.kernel.org; Thu, 08 Nov 2018 05:14:40 EST Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id F1C5E21D07; Wed, 7 Nov 2018 19:35:18 -0500 (EST) Received: from web3 ([10.202.2.213]) by compute4.internal (MEProxy); Wed, 07 Nov 2018 19:35:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= message-id:from:to:cc:mime-version:content-transfer-encoding :content-type:date:in-reply-to:subject:references; s=fm1; bh=Cpd eR+5f5k+fLW+3h2NLtz/RbLYBe2uG5dh0Y/J1mLI=; b=ejM+C0I7Eri069us7zS /k2kn9OnjqGGoW+Jx7LjOLfC8yOS4H37B2Q3wBB7cOW44RTvXbBHb1b8YHV7z4D3 Zm0QZBGUq7sUTzJ+KUpb21sGgcjDx9JQpfbFojyZnwI7nGeIc5jaOfv9Bjgfm+fc b20u//vG9tIzcWq3tiBFseJi8Jta6E029Qdz8uyshbOt4fKAtZlZELv/M0Cyye88 RrJ2yOUkekEI4wT+4TUq/1njTlLEgs3Iw+r9tV+4LRQYSQBlpXLt6wjUXWfKu9Dv 8ofCDp2lotGiTv4usemFx2BGpw8erfZPxzeTWITntrmUfd/2fs+YrZfZqEJOnQkO 9Hg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=CpdeR+5f5k+fLW+3h2NLtz/RbLYBe2uG5dh0Y/J1m LI=; b=wdaPGbVE8teFCftGMUpL4/q6kVloatO0sFCE8DIIdPeaRnlrH2337UUtG +V+fz8RqjEv0CcsoEnB3ZY2Xf660xb+eyzx2+sYS8GDhJMtB1otJ22LXK00b5oUT EJ9HZ0comDz/SXkSn7rPXIfmrYP1yG0k/4EkFNh7huPsPAN+HN+lTFPi5rXmKRMS efL7bTSIi4Q2KzCS2sMKd9pouCAnLMu3czZJUa6xAuFZPmYV9IMb3ohpPccZ1fZg hmVWtGECnhNwpr+4FjZEKsPxd/NA20JPtMvLScZj9cA3p0212roP5T3nE8C7YQr5 wqm/c2ATiZ8A4BPgEXSYleQ4nOt3A== X-ME-Sender: X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 99) id D47769E4F3; Wed, 7 Nov 2018 19:35:16 -0500 (EST) Message-Id: <1541637316.1471870.1569457840.5A56DC54@webmail.messagingengine.com> From: Andrew Jeffery To: Julia Lawall , Felipe Balbi Cc: kernel-janitors@vger.kernel.org, "Greg Kroah-Hartman" , Joel Stanley , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-d469da0c Date: Thu, 08 Nov 2018 11:05:16 +1030 In-Reply-To: <1540916399-22426-1-git-send-email-Julia.Lawall@lip6.fr> Subject: Re: [PATCH] usb: gadget: aspeed-vhub: constify usb_gadget_ops structure References: <1540916399-22426-1-git-send-email-Julia.Lawall@lip6.fr> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 31 Oct 2018, at 02:49, Julia Lawall wrote: > The usb_gadget_ops structure can be const as it is only stored in > the ops field of a usb_gadget structure and this field is const. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall Reviewed-by: Andrew Jeffery > > --- > drivers/usb/gadget/udc/aspeed-vhub/dev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/gadget/udc/aspeed-vhub/dev.c b/drivers/usb/ > gadget/udc/aspeed-vhub/dev.c > index f0233912bace..6b1b16b17d7d 100644 > --- a/drivers/usb/gadget/udc/aspeed-vhub/dev.c > +++ b/drivers/usb/gadget/udc/aspeed-vhub/dev.c > @@ -438,7 +438,7 @@ static int ast_vhub_udc_stop(struct usb_gadget > *gadget) > return 0; > } > > -static struct usb_gadget_ops ast_vhub_udc_ops = { > +static const struct usb_gadget_ops ast_vhub_udc_ops = { > .get_frame = ast_vhub_udc_get_frame, > .wakeup = ast_vhub_udc_wakeup, > .pullup = ast_vhub_udc_pullup, >