Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1747489pxa; Sun, 23 Aug 2020 15:01:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0DfKOnF3rhYWcSi2MjoNeFRh/cyeqv+Tl7rpMuHC7VkPJWjoBeQrBFRwx9JOuc4m5iF7R X-Received: by 2002:aa7:d291:: with SMTP id w17mr2872468edq.257.1598220103397; Sun, 23 Aug 2020 15:01:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598220103; cv=none; d=google.com; s=arc-20160816; b=zss4wX5tRwk/tJMfS9/kdJI8Mrhs6cvPh3vCQ0doxjuF0yj4D12tdRYthQFez4RCSB mjqyUQsuT62JgnJPAVxZXNeIkSJ10p0e/Tj0bdjD+WccUiE6vK0iaW0MI2EblR/eOVRQ qlkFwrzpbN3hc/S89DM/JwbcQPjBj/+ZYbAn3CuSEXeAFpUi3DRDdnoGluoDrf0ILMph UdBXytjQRmToB5OOqTnKZqVd1uS1pGaYBMMVqmhzLJnR7c43htRQVhRh6I1La953Fyo8 zK2yhGS2ANVuJBpVorC+ELWHnFAAx6WuJUXkegaNiEO8YQ3mVOEmZDkNDIMHrgzky6vP qrCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8kGnLJUNpBPhiaEEabiVCH173KisHHa7nsUJuR5EZNc=; b=JIVw5yo+S0uok6ukybApgRuOIGVD8Ha7cSMRYScNYj8Lt9884SiIkKoTnMNLzMKil6 yYNi7l5RvB4FktzxQGjB/9bOVnmVe+TKpcsk+w6p1XF3SkmvTfULfDNt45cfOPb9vRHg CBoYWZY3s2pUTiVYwQwMAcaLgAf3t9zP7Cbc2jsKscLxztePh5+URoe7rHyNQrfXQLUq of8PUsowicBH7mIalhj91sSP+dNtywXNfbqiTNxmJ574try4I/NlezmEuN5m22LfOwQx EQl+ORiTqxUZhp4pN3WQ1sjk7o0OW7YKLZsw0n1Y+YOI60kFQJ7tfESxyrE83Z4GrB85 vjHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=d8gVKich; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t12si6310656edc.174.2020.08.23.15.01.20; Sun, 23 Aug 2020 15:01:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=d8gVKich; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726808AbgHWWAo (ORCPT + 99 others); Sun, 23 Aug 2020 18:00:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726711AbgHWWAk (ORCPT ); Sun, 23 Aug 2020 18:00:40 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3860C061573 for ; Sun, 23 Aug 2020 15:00:39 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id w14so7469708ljj.4 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=FQrSUXI+uJR57DDNFUkLNHOx1ElPBZ2PxSCPho/sT3mBZg1uvr401tgJrPiG/m9wrF b2J1e1hyCsVcEAQiRGdVfAME6/S6TP7ykXueaMs9igk5xStLYB4CrbSt3ksFRW1wC2q3 68gHSiWbjf8+8+OODQGtkZX8iZCpT0PaS6xksDTQICXZzeHy3MOViP7ss9gSr6PSgtPD J5nrlNjRcikmF2oWvRW4vMVq/8RKtMlml4k+xsWtr3VA/+VECJeNhUNjcScWENKCp19T AOo9dQt3nbn1BuIpFplzO9HcURJpYOzyC62j3SRE2ZeIg99UONNgJZpIULPNbY150cGD aJgw== X-Gm-Message-State: AOAM531KVwRcNsLwa0mFIM1N0pHKgbyLQAiFFWBMBt2c4w8E82Zg9uDV 59W64mKypPbvLToYSVZxjYQ= 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 Cc: linux-kernel@vger.kernel.org, Rikard Falkeborn , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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, -- 2.28.0