Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1747623pxa; Sun, 23 Aug 2020 15:01:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxvTIKeQJDIc0pmsy5j0eCaDnlA2rcQvLrZQpMSZy/hBW5g5bgJ12fpmuHz5u11jAzJgYM X-Received: by 2002:a17:906:6a15:: with SMTP id o21mr2808889ejr.496.1598220119318; Sun, 23 Aug 2020 15:01:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598220119; cv=none; d=google.com; s=arc-20160816; b=tAYwj0qASOZOWlSve6TW72jzZ9OGHBO+r8o2o00biyaJYcO1CPOjyiMDIYtT41Dn2o ndDQgHCt6+l3ZgYJ/l0UGP/nEL4IaXiOlKB1b5hJ1DDjOCSVEhYrMraQ9MOC+4QNMMyH KaKO8HtlCjuCFVNPrg8OiV/qwb36W+bvEXT4rVTNy90sutGVzPY5Iw/RaZ1iLA0EoXak AdH0qq1PlGg0AQoG/7V0+RQ5Dh1GQvVDpwc9nB2Vf+D3vsbY1mWFA8fjKn2EytdFZ2FY Yti2JBvXnwiIL7uOUGC4lL35qD5VKiI4fDhetpXmkA6kQHbfI0emK4dvccNWPTZj6vbp 4FHQ== 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=SBAESB7guiywS3iRmfY/38fD7WSfpRQpGnQZqXWbF/E=; b=WxiCRdFSBHuCWACZ5nWs1WydQnDU2pGIUP+9j7Ij4xJpgSUC7f3TCDMItNw7D1kLhe bCGlVIkienB3u4seuaD6FllRDL/O4MP/rVwPoHpxk5IlXTy6St+i1EkF/rcZCn39/2QJ yHJixh42AVujU/uFlrgPjO9u5C8z636UL3pBS2fu6OtxDud5zXzr3rPyLxYCuYZCz+KW xfBuZMhMdRmkYXWcV856fNeiDetq719U1VWQjIjOcepGLCthKrgG64FiVdmQVTGfpTs5 RJ2/4OnJyIp3R0MJiWm+qim4mENy35o8X+VYSNmLTFOT8QB/z7ADr7iKNRqy65enRYzC Y1TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="mUoUs/YZ"; 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 e17si5488223ejx.211.2020.08.23.15.01.36; Sun, 23 Aug 2020 15:01:59 -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="mUoUs/YZ"; 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 S1726909AbgHWWAw (ORCPT + 99 others); Sun, 23 Aug 2020 18:00:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726847AbgHWWAr (ORCPT ); Sun, 23 Aug 2020 18:00:47 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4353C061574; Sun, 23 Aug 2020 15:00:46 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id w25so7433732ljo.12; Sun, 23 Aug 2020 15:00:46 -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=SBAESB7guiywS3iRmfY/38fD7WSfpRQpGnQZqXWbF/E=; b=mUoUs/YZzrS+B8vzev3/EC0sCnui5HL7nn72tGunptCJAE6kS8AKnUdsnYknHG5JMp 8eku6cYBPhqcsOEB85RnLWHcpbv9o0uyUB5bcgr/E9i5ovPaZyXc+vXORprMKjj/j5cV b8D+nCcjIQlrqB7OB8FiiEGCAliunJGv3TZx+5Du8o8PB2pOeJKSrNG53s5XMIGOTjWX SP0czzpQ4OeWNzRL6308in8h6oQYb8KU0tPsdrL7snwWNsBnI89FZ/vvf/zS/wnSgqZt YxP6vsJkAZHPqF34YW4Ro93q9k915IZU+LcRioiYoIEAPcKE8+t93dsvAOEmDOKP3Rnz ivUA== 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=SBAESB7guiywS3iRmfY/38fD7WSfpRQpGnQZqXWbF/E=; b=q5TPJS232xqSC6HhLQpIROCwp+TmqB1CCOzYF6U9UFQ6I+dlx5xDG9WNma+jJ2BDlA oxEjBlSw/iL+8CRnHUqho+/MeEXvIPBiSpXS2Aisr3kvq5IfY3Y5M4Ru9NsIAeF6MRHp ryyme668VSPcsfVSpiUwfAqC/Zc1dHjwPt3Awtg243gAERrl9GB3lPbKQhdE1tYjx4ng lQTEeHH3ZichRtu+YmZ87tE94H1GTAdrnwgXq4xyjpTT8bwobOYdUm9nJx2x520RuHB4 0qnTjn2lgAAGs5LaAfUVWn1YSSBw1PpmlMUtseL85c4FZixZTmNivxe7SNmpqUoF6q8r sy2Q== X-Gm-Message-State: AOAM530pEyquMgCD/HIN0OBS4z0sVxdPy4Wrrp5Q4aUelqVuwwiJdEM0 f2hglXZEV3m62+oL6nNOJZE= X-Received: by 2002:a2e:9643:: with SMTP id z3mr1370413ljh.282.1598220045235; Sun, 23 Aug 2020 15:00:45 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Aug 2020 15:00:44 -0700 (PDT) From: Rikard Falkeborn To: Kishon Vijay Abraham I , Vinod Koul Cc: linux-kernel@vger.kernel.org, Rikard Falkeborn , Andy Gross , Bjorn Andersson , linux-arm-msm@vger.kernel.org Subject: [PATCH 8/8] phy: qcom-ipq4019-usb: Constify static phy_ops structs Date: Mon, 24 Aug 2020 00:00:25 +0200 Message-Id: <20200823220025.17588-9-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 Their only usages is to assign the address to the data field in the of_device_id struct, which is a const void pointer. Make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c b/drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c index b8ef331e1545..fc7f9df80a7b 100644 --- a/drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c +++ b/drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c @@ -48,7 +48,7 @@ static int ipq4019_ss_phy_power_on(struct phy *_phy) return 0; } -static struct phy_ops ipq4019_usb_ss_phy_ops = { +static const struct phy_ops ipq4019_usb_ss_phy_ops = { .power_on = ipq4019_ss_phy_power_on, .power_off = ipq4019_ss_phy_power_off, }; @@ -80,7 +80,7 @@ static int ipq4019_hs_phy_power_on(struct phy *_phy) return 0; } -static struct phy_ops ipq4019_usb_hs_phy_ops = { +static const struct phy_ops ipq4019_usb_hs_phy_ops = { .power_on = ipq4019_hs_phy_power_on, .power_off = ipq4019_hs_phy_power_off, }; -- 2.28.0