Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1747544pxa; Sun, 23 Aug 2020 15:01:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyegn2/KiaEt+V0zHlF9RtnVj/q4HDkVa3vCA0njeEyIKscNVH2lzROEnXyc32qmsziVeKu X-Received: by 2002:a17:906:5e0b:: with SMTP id n11mr3027587eju.523.1598220109937; Sun, 23 Aug 2020 15:01:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598220109; cv=none; d=google.com; s=arc-20160816; b=RIOhA89pHSBQvCX+wYufK84peagnKr3uDWTgBts6/EtC/ehfxclPDtGtl2xauFWB/w yqQ0wFfVfR7Ibs9AW7/ZWJoko/YTtTWaKh0pAuIo9sSoY1JkZxXkSUlr0G876bTFTLU4 c5nEm6Nfa2USi5/7ttk0FFM51fOI7FrtEMvcKpDR6PU0hhaNTHXlzvi3tSr93PQqTsOe Nvtq0vtbHfb7YBBdN9tF19xNiZkemWYdAJxgUSHpbZCQCENTdu9R31BhX8PW7BDTLuE6 p4uRGozROAT+A1McpRufysy4q+Yi6gzd/CL3ikQYoVBzD2wCu/VP/TeicEBoQa0ZKFO8 G7SQ== 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=ggsGppVM/HntumIRYVbA+20UkKH7XXtNQQ4sB7oN2mQ=; b=cQ9nXiJhlmNZ3toGUTkK3jHFKtDlUuDKBy+jiVpNW9b0H69YZsEfiNVOL1Xht1y/gC /uFp3OuuOUbA0ZRi7NKpTO0hu+ktdqrIxivRpKu/NM7BVz3WsckfF8v1unc1R7u3mox3 8A/bXV2lDw2MudoTVkGgPry8cKcBvaAZxudhW+qvR45ifMwP+ZlyTCf1eIQ5l1kz6p9e kejCjh6SOqLAgJzA+ieeLwSD0zwHQvGT88vWKwJqwIehPPj5xgR+meESQL8xs1Vp1S7K Q/i+ZuObYaKe1oTpY/j9NF2v65mywbS+FesXYwZLdn2uM16PgEs9D1kNmPYrtAT97bry 6Wpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dN85WrfR; 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 qp17si1176970ejb.3.2020.08.23.15.01.27; Sun, 23 Aug 2020 15:01:49 -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=dN85WrfR; 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 S1726887AbgHWWAt (ORCPT + 99 others); Sun, 23 Aug 2020 18:00:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726802AbgHWWAo (ORCPT ); Sun, 23 Aug 2020 18:00:44 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67DA7C061575 for ; Sun, 23 Aug 2020 15:00:43 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id 185so7463751ljj.7 for ; Sun, 23 Aug 2020 15:00:43 -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=ggsGppVM/HntumIRYVbA+20UkKH7XXtNQQ4sB7oN2mQ=; b=dN85WrfRGsTzUCZeeGEVg511kaLyqvum9uy+hMJOhW88gtwiSLkxvD/hSKIf5nmfWy g70CZi2MWVyl5NyulkwZWqYKdX6/I1HN5v5WFJNPCIgBfAReMxTo81NaOwDh8Zbffj/z 95kgg9g7z9ciFB1dh3UNJEDGjPHTtd0VTtiA8K42A5jk3x6K9GwHQvv7+Bg3Y4n/DpG5 f3TkMMmFL4wHM/i+L6+INMvBrgZieKiQkqGr/47esEpObhMtdx5PU/7qaEH49nki5nt4 ivSAezf3LqgG0WL/VcTanunFNDBDgbm2XhWboUX93tnKRR7s+D5iGSAAEiJQj6+DhWA1 VcSg== 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=ggsGppVM/HntumIRYVbA+20UkKH7XXtNQQ4sB7oN2mQ=; b=VK5j+vd7wLKe1VJBbAi68OibQSS5jEJNa3uUMQRlS+Iv3X4GKVjyDxV/L1MYxte6Y9 IcaytgAIIUNlx5SlzQNoQNi0/97lSDHNmeFgw27q+Y849HwP51mFcGSN7qCc6isizH4h J28a5xxjeWVMhChbkSO5hR0bu7lE8lm5Ue9ddX7Z6ePlvf8EM5Dhd61O2h6Ikyx32RP4 uM8LHceFoAAc/BV/r1hvyJpAbINqsEJO8CHSNhCiLT4wDixs0+el/oxTMKkwugSHNcfe ktUMY/YzTdlI0u0YPi9nStzwb0u8xcAXUXYeC0mtC0CnIuFDBICJxvV9kNFT/MbRSTTp ZTrQ== X-Gm-Message-State: AOAM532jRNaVZ3MMSxpHnwcirNUszAXji6OVe3xvt5qg1ljVDqLYmOQ4 amZ4Nac2OKI9V90C4E4lkwc= X-Received: by 2002:a2e:96d9:: with SMTP id d25mr1235311ljj.376.1598220041907; Sun, 23 Aug 2020 15:00:41 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Aug 2020 15:00:41 -0700 (PDT) From: Rikard Falkeborn To: Kishon Vijay Abraham I , Vinod Koul Cc: linux-kernel@vger.kernel.org, Rikard Falkeborn , Martin Blumenstingl Subject: [PATCH 5/8] phy: lantiq: vrx200-pcie: Constify ltq_vrx200_pcie_phy_ops Date: Mon, 24 Aug 2020 00:00:22 +0200 Message-Id: <20200823220025.17588-6-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/lantiq/phy-lantiq-vrx200-pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c b/drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c index 2ff9a48d833e..22c5698123cf 100644 --- a/drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c +++ b/drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c @@ -349,7 +349,7 @@ static int ltq_vrx200_pcie_phy_power_off(struct phy *phy) return 0; } -static struct phy_ops ltq_vrx200_pcie_phy_ops = { +static const struct phy_ops ltq_vrx200_pcie_phy_ops = { .init = ltq_vrx200_pcie_phy_init, .exit = ltq_vrx200_pcie_phy_exit, .power_on = ltq_vrx200_pcie_phy_power_on, -- 2.28.0