diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2024-02-17 10:39:37 +0100 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2024-02-23 13:13:14 +0100 |
commit | 00ca8a15dafa990d391abc37f2b8256ddf909b35 (patch) | |
tree | 2e5859e62e8d07674445a020204f7fdd57edbea9 /drivers/phy/xilinx | |
parent | phy: ti: tusb1210: Define device IDs (diff) | |
download | linux-00ca8a15dafa990d391abc37f2b8256ddf909b35.tar.xz linux-00ca8a15dafa990d391abc37f2b8256ddf909b35.zip |
phy: constify of_phandle_args in xlate
The xlate callbacks are supposed to translate of_phandle_args to proper
provider without modifying the of_phandle_args. Make the argument
pointer to const for code safety and readability.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Thierry Reding <treding@nvidia.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Florian Fainelli <florian.fainelli@broadcom.com> #Broadcom
Link: https://lore.kernel.org/r/20240217093937.58234-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy/xilinx')
-rw-r--r-- | drivers/phy/xilinx/phy-zynqmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/xilinx/phy-zynqmp.c b/drivers/phy/xilinx/phy-zynqmp.c index 2559c6594cea..f72c5257d712 100644 --- a/drivers/phy/xilinx/phy-zynqmp.c +++ b/drivers/phy/xilinx/phy-zynqmp.c @@ -768,7 +768,7 @@ static const unsigned int icm_matrix[NUM_LANES][CONTROLLERS_PER_LANE] = { /* Translate OF phandle and args to PHY instance. */ static struct phy *xpsgtr_xlate(struct device *dev, - struct of_phandle_args *args) + const struct of_phandle_args *args) { struct xpsgtr_dev *gtr_dev = dev_get_drvdata(dev); struct xpsgtr_phy *gtr_phy; |