Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 00E59C433EF for ; Fri, 4 Mar 2022 22:59:18 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F10C283A27; Fri, 4 Mar 2022 23:59:15 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="bMx8gc65"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EAAB1838BF; Fri, 4 Mar 2022 23:59:13 +0100 (CET) Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0AD3883A93 for ; Fri, 4 Mar 2022 23:59:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=aford173@gmail.com Received: by mail-il1-x12e.google.com with SMTP id n7so373498ili.1 for ; Fri, 04 Mar 2022 14:59:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9sHahWLkneUbGZO6gygD0iUav4SgcdN4rBLEHJF2f5w=; b=bMx8gc65AoCdVIwHtUbvaDmd+rHPQpR9HcKxR1Mzc+FueUxZWq+P1ygTT+rhF5nzYQ g3kCbmjI//GhqEJB/K4BsAjCTnH+/soJ9z9qK2P4Wdf5ETpZ8smlO//Z0SVRZ9sDtGLr 0bGf0E12spu3AlSpYTnZ4Sbxg4A3L5CEXlnjWxSTSGmz0n9KGcxxBXTODelvyfInFik1 hcjmjQ3gbCvMrneUWujkCBBt9iyb6VDmoYRRQj3K9uVKc8qW5NXNA1nomUTh5hBCsaDW vqfV3ZucdbUqP1ZhZs9McE20tHaAqVbAdvlxHDOHxl6hFffmx4YWI+zKyBP+mO6CVpRN z6VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9sHahWLkneUbGZO6gygD0iUav4SgcdN4rBLEHJF2f5w=; b=wnY3cSt7wIXB+wTI35/NzxNf7/4AzLo8p9BuC+CsApDRhagIiSRx3+AK56DS6ns1hF QeOQwv4I2Q1t8pXF4srUjYSTmlXPRHD5CIOpz9UuAMe6XGg28o+Jf03gRhCTvJQgqq3H b4IILrsIgzLqoG8OCrfLELFvV45zZQ3ojmCuERcUPaJb8a7UrlfdDaZXo6HtLarGsy2R gUy6Q6Uiwv/2k3tuK2B7/6+qhUNqXyBG5WGEcZoxF7CxDNp1Z4J1vZ8tfzZYukY4Nkb1 S5EbnJinO8kHLKcqBZUaArXyks48U8SZB+Cj61SKv4VeGngzIewgWCNMucWt7vQnnqLu lJqA== X-Gm-Message-State: AOAM532vRmG/DcQn/5zQkqv+vuR65ktKl7/Xc3U1srHbiDCtegUScqtA RMc95u8qIsduQv3hDtrSDWHEDyUOOsB7Kw== X-Google-Smtp-Source: ABdhPJxFKxMyoFquwXd2BwZH3VQqVvow8je4D8CfHLZBkdQmU9Ftx/3Y6UvpN5iMBl9MiFy9P2V/WQ== X-Received: by 2002:a05:6e02:1d0d:b0:2c2:1d2c:5b2d with SMTP id i13-20020a056e021d0d00b002c21d2c5b2dmr795782ila.168.1646434749011; Fri, 04 Mar 2022 14:59:09 -0800 (PST) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:5b1e:3972:b8a:59cd]) by smtp.gmail.com with ESMTPSA id l20-20020a927014000000b002c61075e389sm3321201ilc.49.2022.03.04.14.59.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 14:59:08 -0800 (PST) From: Adam Ford To: u-boot@lists.denx.de Cc: marex@denx.de, lukma@denx.de, aford@beaconembedded.com, Adam Ford Subject: [PATCH] usb: gadget: ci: Make various ops const Date: Fri, 4 Mar 2022 16:59:02 -0600 Message-Id: <20220304225902.1653224-1-aford173@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean ci_udc_ops and ci_ep_ops do not change their operations. Mark them as const. Signed-off-by: Adam Ford diff --git a/drivers/usb/gadget/ci_udc.c b/drivers/usb/gadget/ci_udc.c index 542684c1c3..d9a89a17b2 100644 --- a/drivers/usb/gadget/ci_udc.c +++ b/drivers/usb/gadget/ci_udc.c @@ -94,11 +94,11 @@ static struct usb_request * ci_ep_alloc_request(struct usb_ep *ep, unsigned int gfp_flags); static void ci_ep_free_request(struct usb_ep *ep, struct usb_request *_req); -static struct usb_gadget_ops ci_udc_ops = { +static const struct usb_gadget_ops ci_udc_ops = { .pullup = ci_pullup, }; -static struct usb_ep_ops ci_ep_ops = { +static const struct usb_ep_ops ci_ep_ops = { .enable = ci_ep_enable, .disable = ci_ep_disable, .queue = ci_ep_queue, -- 2.34.1