Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1748426pxa; Sun, 23 Aug 2020 15:03:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxY025ZyOs0k7Do1+mNv2c+956H3KxONKAnvDXSg01fyu1Nc+i32GlKasgaPDxpTu2KXO7w X-Received: by 2002:a17:906:2353:: with SMTP id m19mr2210483eja.16.1598220218036; Sun, 23 Aug 2020 15:03:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598220218; cv=none; d=google.com; s=arc-20160816; b=uNXb1emvwbJNfhuIEsoGWpOu2BgUe0bb6ZMC2G4Qq52uCFSHU84UaSZyN/vnnPjCqf UAnN+U3Q/pnTUAbaOGZaqjZjBc/wAyebo66vZlNQpZ5v7PoOaARwf2Iqaump/SXW0u6A iYW/JKj8aXEqcSjruQ8lJd3Kv4QEE3V5JV+ap2Ft9Yf3Bo8R37GKjHC7N8R3YIUx85Dx UVsjWa39Ya2U6vVJlMHCjCK3NA0DpNtewYk5YAfTDhRyLCUdLeUhFXD//P6aX72SOtHI tWr5dgGxGjnTQ93gRVbbc30/GBMseey2ioahpbk40mLbZOwTYE0hHi1j+CQ0cEO1vrMn lPEg== 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=JPZuS7I229v2rKOhfu7+ce1NyRVmKq/AHQWhLmKujP4=; b=hhq94UX3yEbD7EZYauEREiCqLfIh2tUCVvWfzUYK6zsId1Ngut3iITUrV6vh4Dub4A oy+q1ESRyeohn52BWTFjaFCGY9U/ugGfTSt2aEftAaNDfZM/NZRoD5UZoFKb7ecHaBUW QIEn6KyuFhgtKuJwj5Lk4RHa0y1wcN8eErjVMJB8Mfm8WePV/Fv47b+pxFxbfuMNm2je asXwIi3YCR0y9r5sC3VwARulSf7WatvumuFCovq3Jvhs7o+0n+0VZuXDYw9LZEUwyyi+ 4Q+ZOHjavOCJ4jHZECTmcfUJh72vEH/B19EIGZ7bsTLmuhi8kLI7Jr9bot2a+NVBbBS0 P0Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cTg+E2yd; 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 k11si5617920edj.391.2020.08.23.15.03.15; Sun, 23 Aug 2020 15:03:38 -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=cTg+E2yd; 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 S1727020AbgHWWBN (ORCPT + 99 others); Sun, 23 Aug 2020 18:01:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726744AbgHWWAl (ORCPT ); Sun, 23 Aug 2020 18:00:41 -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 452DDC061573; Sun, 23 Aug 2020 15:00:41 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id v4so7491618ljd.0; Sun, 23 Aug 2020 15:00:41 -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=JPZuS7I229v2rKOhfu7+ce1NyRVmKq/AHQWhLmKujP4=; b=cTg+E2ydKwcInMKpR3G8waBqOeQXI6b1Yvvta+Aff/dHc+qAKsIsTPfqYLMlS+DLBg GNdqdoI/vH4LiNMLjydYF7KzB/wXahqqqgvQEWf9JoKfak3xmNVrhw19wAc2Uuq3A+RX aHpcavoIsaplGXjKD6f+V02r7I77Q7rE9o4XKPTFEPi8VTw8ONh3c6r+jJ5vC2YIM630 woojk/MX4HurR2SV3ob99fpskXGJ0s4Mdb6QJntTl71cvVc4VYjEJbfWFBvn100uGCJA Sx+/822CRvMQQ+dHNC5fnc2BzzmnBTnPZIgrcNniiuvLtE1h9McsCzN6/+lpZD9sdTtr U7Fw== 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=JPZuS7I229v2rKOhfu7+ce1NyRVmKq/AHQWhLmKujP4=; b=d0sjdbFHdQHwSbllG5gM406uByqoO4BF4Koez7tQRE3Zm0fQrSAeV2dyzoBfd9bpDV JbXye5s6FJ7VnCoPV9W6qNFJeEn2b4UK+LITkw6TIT17P27wwpjsY3WI/5yj/lHorQrT ZuuA/5N/0dYaEYpf18R6Wf8xd85psRTpSy8UHqPyhL1POEHvuZ/ZdPPJeqomG/jOSp9H 9LJRcdG/ikQO55iAcv+GgeVV4XONZ+KFyWFY0MBJU9lu/Lpw4h1pLyKnLZG+Cb7T8x8H OQPTVaJIHwk04FInV6SBtAES4qzhUphSHejh/1dwScSk+8219qfvYEuTLvF6xEPO9UDW RzOA== X-Gm-Message-State: AOAM532UoGotd+t7+JszYETT9U+qie9amQrWqUby6mhKrPK16yD9Skxh DFQs7C7N1zTE+SJgQg/nZ10= X-Received: by 2002:a2e:87cd:: with SMTP id v13mr1406397ljj.180.1598220039776; Sun, 23 Aug 2020 15:00:39 -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.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Aug 2020 15:00:39 -0700 (PDT) From: Rikard Falkeborn To: Kishon Vijay Abraham I , Vinod Koul Cc: linux-kernel@vger.kernel.org, Rikard Falkeborn , Yu Chen , Binghui Wang , linux-usb@vger.kernel.org Subject: [PATCH 3/8] phy: hisilicon; Constify hi3660_phy_ops Date: Mon, 24 Aug 2020 00:00:20 +0200 Message-Id: <20200823220025.17588-4-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/hisilicon/phy-hi3660-usb3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/hisilicon/phy-hi3660-usb3.c b/drivers/phy/hisilicon/phy-hi3660-usb3.c index cc0af2c044d0..84adce9b4277 100644 --- a/drivers/phy/hisilicon/phy-hi3660-usb3.c +++ b/drivers/phy/hisilicon/phy-hi3660-usb3.c @@ -161,7 +161,7 @@ static int hi3660_phy_exit(struct phy *phy) return ret; } -static struct phy_ops hi3660_phy_ops = { +static const struct phy_ops hi3660_phy_ops = { .init = hi3660_phy_init, .exit = hi3660_phy_exit, .owner = THIS_MODULE, -- 2.28.0