From patchwork Sun Aug 23 22:00:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rikard Falkeborn X-Patchwork-Id: 11731923 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2CD5713B1 for ; Sun, 23 Aug 2020 22:02:52 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0456D2067C for ; Sun, 23 Aug 2020 22:02:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="yCalm/Az"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="d8gVKich" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0456D2067C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=NeWKHOn6j3qCG7vu4UkbeU+/Hq6hrrzm7lpOQX+mLDI=; b=yCalm/AzizYi3z0jldkvLShXF zYpgdmldTG3Adw+1NwEexCOT7hZ436rpcPjbHwjWBSzsHEmptS2MGEIDWbUZYiDo8WruCZkhOlMQd Gc7xanu7vajqaPpVLBMD8+kSVozoGLMAUHYgwazhZviGPiyDYCikJ5GuSwo7kWuj7+oAoZc4YzyD3 cnSFuF4SFuVH/ubbq4dy8sMwAOjt0cxSZNM2WByKqCd4Ldan89YpC48ay7WTU16ouoRSMI2BqGZE1 naupGEXUuKpLJPq50rJcIY5j/vV/PDH0RJl4VMsiolr1azkDWiOe1eNGhzOiM4Tm4t0t0HlT3ScB1 J/gDx9rNA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k9y2l-00051g-9d; Sun, 23 Aug 2020 22:00:51 +0000 Received: from mail-lj1-x242.google.com ([2a00:1450:4864:20::242]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k9y2e-000507-R1 for linux-arm-kernel@lists.infradead.org; Sun, 23 Aug 2020 22:00:46 +0000 Received: by mail-lj1-x242.google.com with SMTP id g6so7443666ljn.11 for ; Sun, 23 Aug 2020 15:00:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8kGnLJUNpBPhiaEEabiVCH173KisHHa7nsUJuR5EZNc=; b=d8gVKichS3uwl07tQAk/PML88vkECqchouuvxyA8D45XvBAk5IiBWuiw+9TIN04y0d eHsIrDKRgMOZWV+9agzRPk5OlWGG0ChDLdD6vhRpHC8nVesofwo6TCa5Oez8Eosbs+Vg vrLstumMPI29BhFU2iv29NVY9sf2hs7S/OjOEHncS2LZlxtMws02rM7c6VQzSbJoOTqY mPt3O04PVBgT0YhXnrUnCDhJmavmw4h4wDC4QbE9TyyMGWrcddhqBKWoFyP1H/mSRUuz ZHfgQx1zoRA1GMxr8iZeJ9zB8XJKTYjEkcjqou0QmyVMZG62sdXSXLbyxP3HD2ph+t5g 9H+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8kGnLJUNpBPhiaEEabiVCH173KisHHa7nsUJuR5EZNc=; b=jkQftRdgTuxJYTfMyu95cwj3gZ5kmYUQMQPMyvy9eAjTM86mzGAmWZdj6JZK4ztYZG sE4mGj5JgbdKB6ZZ1S+b0GGax+77OWvuz1PpD8KlvSbPfNTvMwXR3GG3wLjp4TRBCSTH vYNnFeFIPa4DMzW6dDuyqlR0+n6AgK8uIMHv4AdGstqxkz6HaLFTmsEZ+wEfUztvIJyh FPGx2A96bOxwfQtOg3bv27zfc4u6cOOhsLuvq1sKkQIBYYfvbWl4PwJHeK1RqsxCl3NM zgUjvganH7N+eBCxmm0TcqX/rRgPkg9K0gosnNE4EYZrrGwy906+DTOX166e6JKNIpG/ u3lQ== X-Gm-Message-State: AOAM533ofWtd2klfaOqvfZ/FNwnSRSh9qKN6ZndwIv428JTXJFwqtvDX IHsa82YwCnuT/qtWAYai2Fc= X-Google-Smtp-Source: ABdhPJx6ZZrN5Zo7rxiLLQUeYK8np3Dcd3lxRmGN0M9+Aa67NisEkYUYHCgkxmg5yZxq3kAimGgUsg== X-Received: by 2002:a2e:9057:: with SMTP id n23mr1209425ljg.445.1598220038364; Sun, 23 Aug 2020 15:00:38 -0700 (PDT) Received: from localhost.localdomain (h-82-196-111-59.NA.cust.bahnhof.se. [82.196.111.59]) by smtp.gmail.com with ESMTPSA id g11sm1825097lfc.46.2020.08.23.15.00.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Aug 2020 15:00:37 -0700 (PDT) From: Rikard Falkeborn To: Kishon Vijay Abraham I , Vinod Koul Subject: [PATCH 2/8] phy: fsl-imx8mq-usb: Constify imx8mq_usb_phy_ops Date: Mon, 24 Aug 2020 00:00:19 +0200 Message-Id: <20200823220025.17588-3-rikard.falkeborn@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200823220025.17588-1-rikard.falkeborn@gmail.com> References: <20200823220025.17588-1-rikard.falkeborn@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200823_180045_472872_53054954 X-CRM114-Status: GOOD ( 15.13 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:242 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [rikard.falkeborn[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Shawn Guo , Sascha Hauer , linux-kernel@vger.kernel.org, Rikard Falkeborn , NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The only usage is to pass its address to devm_phy_create() which takes a const pointer. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/phy/freescale/phy-fsl-imx8mq-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/freescale/phy-fsl-imx8mq-usb.c b/drivers/phy/freescale/phy-fsl-imx8mq-usb.c index 0c4833da7be0..0dcca39649d2 100644 --- a/drivers/phy/freescale/phy-fsl-imx8mq-usb.c +++ b/drivers/phy/freescale/phy-fsl-imx8mq-usb.c @@ -76,7 +76,7 @@ static int imx8mq_phy_power_off(struct phy *phy) return 0; } -static struct phy_ops imx8mq_usb_phy_ops = { +static const struct phy_ops imx8mq_usb_phy_ops = { .init = imx8mq_usb_phy_init, .power_on = imx8mq_phy_power_on, .power_off = imx8mq_phy_power_off,