Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1748293pxa; Sun, 23 Aug 2020 15:03:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJaK2zIfIWSRQn+SR/cvD3t7U+3kj4wqwWu87szXn4DoPzdacjiwJYY0391LNiSAH9wZjJ X-Received: by 2002:a50:e004:: with SMTP id e4mr2774790edl.114.1598220202637; Sun, 23 Aug 2020 15:03:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598220202; cv=none; d=google.com; s=arc-20160816; b=k7BIS4c/GfpQ4qAPEkowmXmycpijveIDHeVyEowDaPEyt7/rylTL/nBCDelg6IxloE ILpaNegITOvHAwr3iNryjj0RUSmB5SZ5s1/BRaRrvDNS/2DzdavbOjLi1YfxAI6/BTvh BEke5fGhVBiTIdkyiz83MthMAUDNAIxH4nVMjvO/WCCInDdiTnlC+2BkcDyA4+tiKWN1 z+v7L+N7SRJP0Ye0GnPcFNyjTf0NhILABNMGApzYP6yxitStl4eKYZuWC8X3R7WBZ6FK n6kvER+tPMHd8pKYMvdPF27d74qx85olUMi7fCPqiWwhIfJGC44b5+LEWBamBL4ERilq 01hQ== 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=Gjrzodt6fBD8RB4wFRtbeU8eetdbh6wPtgtlByTKAf8=; b=kTtlw7pZfMPwS5TsO3uXwFOSRVS6mBh6Q8qO81GMZ13cfhatQz0YruMjgWhGJlaZ6+ oxVPuGRwN2zKlEM9ifrQC048lh8n90elKM4xEsj7vlJCL8VPmqp8UOJc27E6MuE8miLD R5pLMV/YL+JFe4FmYkFd5nzxfaXlOCptct67OIMx0mNokLapQiOybtl2dLRhS405in5b 1J97ddCOFpMWqoAqDDYLYywAuZ8hbDLGx8Qo5fGLDkEzy4pS5kt5OeP+e/Ma9V8OIQS7 lGpCPJL4hNaxQItu9UUgeecQ4Jh9aOD/QtSjjHjD3zyTIP9dr7WVbQGZAQCQcTkAdApL m3ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=as+53TFF; 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 ju13si5847065ejb.552.2020.08.23.15.02.59; Sun, 23 Aug 2020 15:03:22 -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=as+53TFF; 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 S1726880AbgHWWBB (ORCPT + 99 others); Sun, 23 Aug 2020 18:01:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726818AbgHWWAq (ORCPT ); Sun, 23 Aug 2020 18:00:46 -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 A751BC061573 for ; Sun, 23 Aug 2020 15:00:45 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id v12so7457568ljc.10 for ; Sun, 23 Aug 2020 15:00:45 -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=Gjrzodt6fBD8RB4wFRtbeU8eetdbh6wPtgtlByTKAf8=; b=as+53TFFNT6fihPBDkvzycxenFTKDCvg/t5zgGUdrj7EmKaFY0mRkqhXN8HyCpmVnR 1CRlCO+L2RmEnm7ZwS027ylSeRTFTs8f5rOKwgPzZEl5R1w/YaW5RRB9Ml/u1a9vwb4n +8sX8Muojm2bVa1WcxYMHe7oEq8Z3TaWTPzXGywwwiIerPbxhQ7rULz9+2t3Urma97ek MCOsLuHD5FyrWrdFKvLQyrIUw5WMPPLpXnpLbFdGh4vpo0Zc0FAs+bgg89Qy9QV8CS+x TttQ0tHR7JcprmA6cHWFe1qTJf+fAj2jmytyM4e3vBFBTy0+/cP3ylE8LRP6TUA7PxyR Ccvg== 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=Gjrzodt6fBD8RB4wFRtbeU8eetdbh6wPtgtlByTKAf8=; b=HTdd0laJJOuS69b7ADUty9KTwdHQ86tA5u1okmw400IpaptqME+bScHhx8oqjhs8/9 ZeAm98d0vY7CV9Ly3iErLcrYqhKcnNF87UzeFZjncQlUon6dMycfpJWk69B3O9oICjMk UnR/3BfJLWtFmONXYygHeKbuO1AnGsdnGF6A4qT7Mj8yZU33mmUvjQOpDNW5AFJVOa6G Csruy8WLlns/S3xOFy1yi95ZrdLtSazk0h5tApG5pL9QswvV/oOd467okDlGisijnjtT 4dvMkEYCyDKd+PZXXLwA7VFB4yCe5bwIH1Lo+27pJAxTM2QscSYm7o7WSDzq4NMmhc89 Fw6A== X-Gm-Message-State: AOAM532issj/6OLUZylOnZd0p+9yC7YbMFwzsq08zM1RYfmzXhLSv2xJ xXATxNAnhNvzsNkDFHpDcaQ= X-Received: by 2002:a2e:9946:: with SMTP id r6mr1308164ljj.127.1598220044134; Sun, 23 Aug 2020 15:00:44 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Aug 2020 15:00:43 -0700 (PDT) From: Rikard Falkeborn To: Kishon Vijay Abraham I , Vinod Koul Cc: linux-kernel@vger.kernel.org, Rikard Falkeborn , Alim Akhtar , Seungwon Jeon Subject: [PATCH 7/8] phy: samsung-ufs: Constify samsung_ufs_phy_ops Date: Mon, 24 Aug 2020 00:00:24 +0200 Message-Id: <20200823220025.17588-8-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/samsung/phy-samsung-ufs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/samsung/phy-samsung-ufs.c b/drivers/phy/samsung/phy-samsung-ufs.c index 9832599a0283..dd9ab1519d83 100644 --- a/drivers/phy/samsung/phy-samsung-ufs.c +++ b/drivers/phy/samsung/phy-samsung-ufs.c @@ -268,7 +268,7 @@ static int samsung_ufs_phy_exit(struct phy *phy) return 0; } -static struct phy_ops samsung_ufs_phy_ops = { +static const struct phy_ops samsung_ufs_phy_ops = { .init = samsung_ufs_phy_init, .exit = samsung_ufs_phy_exit, .power_on = samsung_ufs_phy_power_on, -- 2.28.0