Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1747697pxa; Sun, 23 Aug 2020 15:02:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIRpkrVtC8YQz+J2gilMgXWf2jV4qdSZHz9MToKneSnnOg7XSvzImn141MafBc/EmaL2o8 X-Received: by 2002:a17:906:b248:: with SMTP id ce8mr2826082ejb.85.1598220126882; Sun, 23 Aug 2020 15:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598220126; cv=none; d=google.com; s=arc-20160816; b=hTFK2QaAyw8Ll91cEVxOcE0bS3R2YGUKMLkJopiqx8M7o23o5RJBTLWrj02TiqqR1d YoHsWfwXDbdF0oTiK0Ds0jqVVSl7O5EZ38E+cgtX6E2/eUg/OLyzAHPhw+KIGRgyvZ0C 9m2av9cogUoZDfmddbzRjtyWtMzq+d7J+wsbVEjVUYpcWdlYRPdqVhOcMnt7hguo88o5 5t4Tryz8bAxndT7gqAaDpF99Xr0a2Or6qWOV01zh1ZrfsuZhCDA8zTWg4lrbCeOJakS9 GP6O40S1CDXPpLnvhhdIGAl84YN4G9IMvjFsxKaoN+QjS5E9vqNdpxB4VBVodgU2GDq+ b0Pg== 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=B7cJIHsSvb5hbXVJfJh4y83titz5j9Tbj6LXlECxklc=; b=a2179x2su+cuObGnoU9O46nhJ1kqwO/Z4AQuU6of48hx7hbxwB2BsZYyJ556jrmFSw 8k4JYJa/fmdWx+LihFU9rBczI1r4/wFHMsEN6G9NPVQXYSAwf86qj6IJ0p0cGkjStpCG eoT/7thKlDjUmGETp6KUq1Ut8zUabCKMgBBo/9BTvt5rBF+BZlOPR1bDv2wv4hLceHap 1AWZNdQiE7l3fSQ0GlsDJSO3tGQzynkX+VcZRV8Z1EHppQ14BvV1YUcslP/UqCVqGYvt 085vEvPQ1e4coGXnlC/sNwDUqNjvp6y6Zg6TK5ILkMnl9AYMIl/a5eAvffmPKgudcsmW TEVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZSNgL22m; 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 b14si5237558eds.102.2020.08.23.15.01.43; Sun, 23 Aug 2020 15:02:06 -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=ZSNgL22m; 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 S1726867AbgHWWAs (ORCPT + 99 others); Sun, 23 Aug 2020 18:00:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726300AbgHWWAj (ORCPT ); Sun, 23 Aug 2020 18:00:39 -0400 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C631EC061574 for ; Sun, 23 Aug 2020 15:00:38 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id m22so7467672ljj.5 for ; Sun, 23 Aug 2020 15:00:38 -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=B7cJIHsSvb5hbXVJfJh4y83titz5j9Tbj6LXlECxklc=; b=ZSNgL22mr5vmLGoMGbgOWCD6cZ3ZwXkpm/JkGbh1eWDXk0jYGEqeWeG9O0d/79WF3P XrpjSqnEMxxDjQjA8/fmfEom8sghKgVTEs0QfJYyFDa9sOBeSDNFAQ9EVEtOwsiJLeBm i2UOSvcOux5D9oVmHRmGsH2vrtE0qgUoxWygOelWljyCnyopGz5E3mOaCDcxNzSZpElg h54Rj776ZdvjUjYGDktJb+oAyCVWHH/HnSE9sSd6QYYat/dJVQB7cRsUN/1XkweXATxg 3Fe4RpnW2bVPTc6Ui8zoz/gIYTr1ApjwXN24CVsrpZLPrwZQc3ZbuQJir3k75hHYHeJ4 JF7A== 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=B7cJIHsSvb5hbXVJfJh4y83titz5j9Tbj6LXlECxklc=; b=OfgZgohiumCxVZRG5Zv17czxlP+KXP36lewZ0dFTin2/mdfovdDDiP2LjShPO/RnbN Uz+ggl/Z3/ROcg2BXdjrUMzWmrF0p1zVBk/u1HYmPwIqVR83moTxj/3Xz9hDBSVer/zC +ZniGer+eD7NuipTXxRGIJd8LjDpyWuNpv213aiQH1KvSBm/UkfRg6KctsBmeeAm8hw/ ZdMM57op3LS6LjjVHJolwXrV2vlK5/u/ctBnaN+mQC7Rr9D43oem0tsq5WMQnZBxdN2l iXY/p4yzE9gEu/1n22+GUukE0/Ey6A4xDLOK/6hPObhn1+Xaex2aP3zTqz9FYe3vCkoE gssA== X-Gm-Message-State: AOAM533fFLUkYQacv/98l2MnYLKnz1pHCygqh5e//B1SfoA6OWEjOfWm jGnkiLhIBzPSlUM+/LFop+E= X-Received: by 2002:a2e:b80b:: with SMTP id u11mr1366822ljo.286.1598220037261; Sun, 23 Aug 2020 15:00:37 -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.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Aug 2020 15:00:36 -0700 (PDT) From: Rikard Falkeborn To: Kishon Vijay Abraham I , Vinod Koul Cc: linux-kernel@vger.kernel.org, Rikard Falkeborn , Peter Chen Subject: [PATCH 1/8] phy: cadence: salvo: Constify cdns_salvo_phy_ops Date: Mon, 24 Aug 2020 00:00:18 +0200 Message-Id: <20200823220025.17588-2-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/cadence/phy-cadence-salvo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/cadence/phy-cadence-salvo.c b/drivers/phy/cadence/phy-cadence-salvo.c index 016514e4aa54..8c33d3215f2d 100644 --- a/drivers/phy/cadence/phy-cadence-salvo.c +++ b/drivers/phy/cadence/phy-cadence-salvo.c @@ -251,7 +251,7 @@ static int cdns_salvo_phy_power_off(struct phy *phy) return 0; } -static struct phy_ops cdns_salvo_phy_ops = { +static const struct phy_ops cdns_salvo_phy_ops = { .init = cdns_salvo_phy_init, .power_on = cdns_salvo_phy_power_on, .power_off = cdns_salvo_phy_power_off, -- 2.28.0