Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1748418pxa; Sun, 23 Aug 2020 15:03:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzl79HIvMsn/2vlrBK6hxzvRph3RS3LmYLsBc3zuHWMLJW3BwYa78nQpd7VrXX37jED0l5a X-Received: by 2002:a05:6402:1e5:: with SMTP id i5mr2749551edy.194.1598220217249; Sun, 23 Aug 2020 15:03:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598220217; cv=none; d=google.com; s=arc-20160816; b=ADQPUup0lT4UkevK52WTGYc1ppI7C5wKWO9l4od/pSVzYMv0Jx8jK1ml7Vocd9xx0m FJiZ0QAlWHq69vIYH5c441syS7JUwJ+qYn4R4QkfGphierj9a8YWBAUbL4QEgd1arLzK W6SgjVKfM3+0xl4869bZBFEa2g4ri8DHuvi1bGDNKDKhmtN1ao4Zj9JDvUWsPtVNHeVV 5LNXxEa9OfqyvQH/pbsoaLvLgQm3uRUIbcppYXmabMtp1yyVcVxaWAidvRvEO5aNrhPV ypPCur74zI8TeGCrgTkY/23FxbcWr0PzBLlWoTZQ9WnXSS6vgiRrV+fgEZ3QDtQmLlnE L1uQ== 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=PVkKQ+rBkOrviFA3gyJDGe3unI5VCeDUb05QjWVQmnI=; b=LCfei3dv0PhotMP3EIPOslHq4lPpA6Wv2TjYLbWLSnnS/psObGRcQp6gBeNTRYC2RF qpLQAp7LZCSasemt8C9hFcATXOgZ7GbP99/Zbqhlf8l3WHow4pzJSTG9Pb/Rb3gi723M JwBVpnHNQelb5TO4NGNHXGN3UhNX7GC7H5OBsmoXEur37VqBCkyYrXmz6C3Zv+LANFbs BY4y63IqtCg2VMpiP2gvFxo0wvhBF1+0Wc7AtdaDETRQT+3X+uuXBDpW9vBsMbFloyV6 gRjcOg/mT+Buf80lWtyry57Cq5t7vzwg3kjUt8BaquoaCIiTYCKq8JIf7YySptksiFc+ PCkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=V74dtCU0; 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 d14si2049716edn.207.2020.08.23.15.03.14; Sun, 23 Aug 2020 15:03:37 -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=V74dtCU0; 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 S1727045AbgHWWBP (ORCPT + 99 others); Sun, 23 Aug 2020 18:01:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726752AbgHWWAm (ORCPT ); Sun, 23 Aug 2020 18:00:42 -0400 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4235BC061574 for ; Sun, 23 Aug 2020 15:00:42 -0700 (PDT) Received: by mail-lf1-x143.google.com with SMTP id s9so3443831lfs.4 for ; Sun, 23 Aug 2020 15:00:42 -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=PVkKQ+rBkOrviFA3gyJDGe3unI5VCeDUb05QjWVQmnI=; b=V74dtCU0eEAN3ERAydHkgKWbp5GZGVVvfixyfJju2k5H8XyjMLhtzNlH5lMzSnpi33 gtRboKHsNW145qboKAoBOuSEpiIUlbx6r71mgXKyZPrCF/xcJqdJQvBes4FXmMxuEmjZ kz9cSg9R9PfM1qrFNFg7PNcxb9ZnBrP1G5XX6umZh/35RTfFsYbULBzVVLGr29EUUKvC sN3KjHVzfLlHRZyjmiVBo6kY3tFIwqmtGSg/PBtnsHp5ZF5tY5wxiBBfPuQs+WwPQDmi C8LWzS9nXU68W5RfJMl7JMZejiVch1fNL9c+6NTmrpsIxwIMkEcQsOU2P+6RoavP6fyN biEg== 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=PVkKQ+rBkOrviFA3gyJDGe3unI5VCeDUb05QjWVQmnI=; b=WSUpCCGm9uK+SU7woLhMd4FOqEwNeZPwjtwF1Pntr9DEP2yoicDhTjqjaGHaAiQbDd QYiCnOwRbJJ1WscALbLLVQQkBhK4PO6/m124P3OdHisQIQmntsXpXEbc7dGbXkRwRmlK 9XZiv1ZIMtKGkys8iZbqtd3S09oEwntT9vKKOoB8xa7kM2Hpz2Dg/gtl03ScjMKkqmgc lV/DNr2Zz+1TsHEcOAIS45yX8Yr2HEamXPfSS/7nnRy8Zfjpl5gN+njWEheJUFXdvDbY GAqxbyCzAzeZqpTUmqrEc6xtCTmbUC/N2niGHt2edYnlu72aXFX7yH69cJhcsohOlBmW yYZw== X-Gm-Message-State: AOAM5339bkZqO6uIiH4zfeWXu2uiA9ifp2/XmkFS5yvZ1Z5fMzQvaWRd 3Jj3xZiznwFQF3Ppc0Wp2n0jjAEpxPcXsw== X-Received: by 2002:a05:6512:3e8:: with SMTP id n8mr1209460lfq.210.1598220040768; Sun, 23 Aug 2020 15:00:40 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Aug 2020 15:00:40 -0700 (PDT) From: Rikard Falkeborn To: Kishon Vijay Abraham I , Vinod Koul Cc: linux-kernel@vger.kernel.org, Rikard Falkeborn Subject: [PATCH 4/8] phy: lantiq: rcu-usb2: Constify ltq_rcu_usb2_phy_ops Date: Mon, 24 Aug 2020 00:00:21 +0200 Message-Id: <20200823220025.17588-5-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-rcu-usb2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/lantiq/phy-lantiq-rcu-usb2.c b/drivers/phy/lantiq/phy-lantiq-rcu-usb2.c index be09b1530ae6..a7d126192cf1 100644 --- a/drivers/phy/lantiq/phy-lantiq-rcu-usb2.c +++ b/drivers/phy/lantiq/phy-lantiq-rcu-usb2.c @@ -141,7 +141,7 @@ static int ltq_rcu_usb2_phy_power_off(struct phy *phy) return 0; } -static struct phy_ops ltq_rcu_usb2_phy_ops = { +static const struct phy_ops ltq_rcu_usb2_phy_ops = { .init = ltq_rcu_usb2_phy_init, .power_on = ltq_rcu_usb2_phy_power_on, .power_off = ltq_rcu_usb2_phy_power_off, -- 2.28.0