From patchwork Fri Jun 3 02:04:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Park X-Patchwork-Id: 12868452 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C9128CCA47B for ; Fri, 3 Jun 2022 02:06:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:MIME-Version:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=lpGmXspU5HPPcCtSTxdBygrTvB/6vYKQmLxWx3iliUY=; b=ERuNfhc2HiscEO h3s7ft1NMN1MSgwU2vveYxqt18MGRdTj6zoiEeTLdzJzaIK6ftIdLifbbCEU8pUNF8/F6MmZd7jrE buHNnDZHIIX71sTupL41YfQcks7v36Cra/fCVKKQM6oN7pRO2qMoEjKSdf/O7fX/6wrmZapze25sV jJACfD114gPtcLsqstiDw35MJekijB9bj/f+qspK3/XfMD5EDQeIDWlCROGqDrJ09Ye7aHXSm1+b4 juZfRvBjCopEd9YOmEGF2f/uHw7Pawt8fKtViytFdRqLnWa95dLReFOxEvp66jKXHXmrRionmDjlP bkQM3gzuj9sWMyumAfbg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwwgJ-005RRj-MH; Fri, 03 Jun 2022 02:04:55 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwwfv-005RJi-L0 for linux-arm-kernel@lists.infradead.org; Fri, 03 Jun 2022 02:04:35 +0000 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220603020429epoutp04e82c2b98caff164831f7404941c7370e~0_ga0vU_X2263422634epoutp04c for ; Fri, 3 Jun 2022 02:04:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220603020429epoutp04e82c2b98caff164831f7404941c7370e~0_ga0vU_X2263422634epoutp04c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1654221869; bh=onMMjv0YmrPGo8mWiHDVE0940m+Wc9tprRZAWAZI0P0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U+3tZTFNxe0Rfr2IKURLpsm2h8KaTOq6bNGuujtG7BaoinWIP9IVJzwuB4/ha0SSp 8tWUxgKQQzUafmgUwdDjZ92v1el+hw2ruOCzbUW+c++loRBf04hArdn4n8yBb4p6n3 H0anFOPpUw5lmyx2cC1CWnd5ZEDKwchuYPIFTGkc= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20220603020429epcas2p137b72e4b8d42f139e70e6763ebfc5cbd~0_gaSsCnm1047010470epcas2p1X; Fri, 3 Jun 2022 02:04:29 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.36.101]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4LDmR01yqnz4x9Q0; Fri, 3 Jun 2022 02:04:28 +0000 (GMT) Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id AA.BD.10028.A2C69926; Fri, 3 Jun 2022 11:04:27 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p3.samsung.com (KnoxPortal) with ESMTPA id 20220603020426epcas2p3f6b5174734313e5d06d0177c3ebd777d~0_gXtC0Ju0887208872epcas2p3p; Fri, 3 Jun 2022 02:04:26 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220603020426epsmtrp2cb8901314c60d6f27ac41d37fb72afaa~0_gXsPwmG0586805868epsmtrp2M; Fri, 3 Jun 2022 02:04:26 +0000 (GMT) X-AuditID: b6c32a47-573ff7000000272c-d4-62996c2aba79 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 58.84.11276.A2C69926; Fri, 3 Jun 2022 11:04:26 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.51]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220603020426epsmtip115fffb09bd96ee17c481834abb5feec9~0_gXb4N712906529065epsmtip1Z; Fri, 3 Jun 2022 02:04:26 +0000 (GMT) From: Chanho Park To: Kishon Vijay Abraham I , Vinod Koul , Krzysztof Kozlowski , Alim Akhtar , Rob Herring , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-phy@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chanho Park Subject: [PATCH v3 3/5] phy: samsung: ufs: constify samsung_ufs_phy_cfg Date: Fri, 3 Jun 2022 11:04:08 +0900 Message-Id: <20220603020410.2976-4-chanho61.park@samsung.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220603020410.2976-1-chanho61.park@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrKJsWRmVeSWpSXmKPExsWy7bCmha52zswkg21LGS0ezNvGZnF5v7bF /CPnWC0uPO1hs+h78ZDZYu/rrewWmx5fY7WYsOobi8WM8/uYLFr3HmG32HnnBLMDt8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fuhedKCC4 5euWh3P+1ruJ9XreuhbwuGvesebWGRFJG/+rmO7kWSdi+nui6kklluKMREMt5qLiRADBqDKg OAQAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrALMWRmVeSWpSXmKPExsWy7bCSnK5Wzswkg/sfRSwezNvGZnF5v7bF /CPnWC0uPO1hs+h78ZDZYu/rrewWmx5fY7WYsOobi8WM8/uYLFr3HmG32HnnBLMDt8emVZ1s Hneu7WHz2Lyk3qNvyypGj+M3tjN5fN4kF8AWxWWTkpqTWZZapG+XwJXxd94lloLfvBXPdj9g bGD8xd3FyMkhIWAicb/nBnsXIxeHkMBuRolVX56zQCRkJZ6928EOYQtL3G85wgpR9J5RYu/r LcwgCTYBXYktz18xgiREBLqZJOZs6mcCcZgFtjNKfFi6DmyUsIC7xK7Ga2AdLAKqEqcW/2MD sXkFbCXmnTkOtU5eYsP8XrAaTgE7ievTvoLZQkA1z/uesUDUC0qcnPkEzGYGqm/eOpt5AqPA LCSpWUhSCxiZVjFKphYU56bnFhsWGOallusVJ+YWl+al6yXn525iBEeCluYOxu2rPugdYmTi YDzEKMHBrCTCW7JrapIQb0piZVVqUX58UWlOavEhRmkOFiVx3gtdJ+OFBNITS1KzU1MLUotg skwcnFINTCl9L4oUHh2L4Loq7cp8XWau+neJKvEP3AICcy8+2FS73VGu982LWTGzvnet3tHK wPdjsUfU+7+bIk+uq1OeofRxX4D+dJcdH6U/xN58kWPCr8cqaxgwZXZ7YPr7haGPVl60nsSz df68ya6RwpmLeITWexS6VbXtW1yW4Vlu/Uvefe5vpkAPjpPh/c6T09YdW6p8++pNO24G5cY8 Aad1qtfPHDv0Tl1x+oqYDer/fRWq98ncef107aLAM1PfcRXLCO76+S1J7dJqd+8ThXVcXtr3 1y2fkJD9MKz0E2dDWVsek9dtEztW9ZSPr45nZknW9nFknc7s3zxji/3sg3ddmy8Zy525ejE5 0izgabgSgxJLcUaioRZzUXEiAK0aBIbzAgAA X-CMS-MailID: 20220603020426epcas2p3f6b5174734313e5d06d0177c3ebd777d X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220603020426epcas2p3f6b5174734313e5d06d0177c3ebd777d References: <20220603020410.2976-1-chanho61.park@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220602_190432_129746_A639ADEE X-CRM114-Status: GOOD ( 18.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Put const qualifier of samsung_ufs_phy_cfg pointer because they will not be changed from drvdata. Signed-off-by: Chanho Park --- drivers/phy/samsung/phy-samsung-ufs.c | 4 ++-- drivers/phy/samsung/phy-samsung-ufs.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/phy/samsung/phy-samsung-ufs.c b/drivers/phy/samsung/phy-samsung-ufs.c index ed272631e8aa..e1e26da27245 100644 --- a/drivers/phy/samsung/phy-samsung-ufs.c +++ b/drivers/phy/samsung/phy-samsung-ufs.c @@ -75,7 +75,7 @@ static int samsung_ufs_phy_wait_for_lock_acq(struct phy *phy) static int samsung_ufs_phy_calibrate(struct phy *phy) { struct samsung_ufs_phy *ufs_phy = get_samsung_ufs_phy(phy); - struct samsung_ufs_phy_cfg **cfgs = ufs_phy->cfgs; + const struct samsung_ufs_phy_cfg **cfgs = ufs_phy->cfgs; const struct samsung_ufs_phy_cfg *cfg; int err = 0; int i; @@ -327,7 +327,7 @@ static int samsung_ufs_phy_probe(struct platform_device *pdev) drvdata = match->data; phy->dev = dev; phy->drvdata = drvdata; - phy->cfgs = (struct samsung_ufs_phy_cfg **)drvdata->cfgs; + phy->cfgs = drvdata->cfgs; phy->isol = &drvdata->isol; phy->lane_cnt = PHY_DEF_LANE_CNT; diff --git a/drivers/phy/samsung/phy-samsung-ufs.h b/drivers/phy/samsung/phy-samsung-ufs.h index 1788b356cf56..101497698f23 100644 --- a/drivers/phy/samsung/phy-samsung-ufs.h +++ b/drivers/phy/samsung/phy-samsung-ufs.h @@ -121,7 +121,7 @@ struct samsung_ufs_phy { struct clk *rx0_symbol_clk; struct clk *rx1_symbol_clk; const struct samsung_ufs_phy_drvdata *drvdata; - struct samsung_ufs_phy_cfg **cfgs; + const struct samsung_ufs_phy_cfg **cfgs; const struct pmu_isol *isol; u8 lane_cnt; int ufs_phy_state;