[PATCH v3] spi: xilinx: use device property accessors.
Abdurrahman Hussain via B4 Relay
devnull+abdurrahman.nexthop.ai at kernel.org
Thu Jan 22 01:00:29 PST 2026
From: Abdurrahman Hussain <abdurrahman at nexthop.ai>
Switch to device property accessors.
Signed-off-by: Abdurrahman Hussain <abdurrahman at nexthop.ai>
---
Switch to generic device property accessors.
Changed from v3:
Removed the patches to make irq optional from the series
2.52.0
base-commit: 944aacb68baf7624ab8d277d0ebf07f025ca137c
---
drivers/spi/spi-xilinx.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/spi/spi-xilinx.c b/drivers/spi/spi-xilinx.c
index c86dc56f38b4..c4b70e95b695 100644
--- a/drivers/spi/spi-xilinx.c
+++ b/drivers/spi/spi-xilinx.c
@@ -405,11 +405,11 @@ static int xilinx_spi_probe(struct platform_device *pdev)
bits_per_word = pdata->bits_per_word;
force_irq = pdata->force_irq;
} else {
- of_property_read_u32(pdev->dev.of_node, "xlnx,num-ss-bits",
- &num_cs);
- ret = of_property_read_u32(pdev->dev.of_node,
- "xlnx,num-transfer-bits",
- &bits_per_word);
+ device_property_read_u32(&pdev->dev, "xlnx,num-ss-bits",
+ &num_cs);
+ ret = device_property_read_u32(&pdev->dev,
+ "xlnx,num-transfer-bits",
+ &bits_per_word);
if (ret)
bits_per_word = 8;
}
---
base-commit: 944aacb68baf7624ab8d277d0ebf07f025ca137c
change-id: 20260118-spi-xilinx-1b884d5b6519
Best regards,
--
Abdurrahman Hussain <abdurrahman at nexthop.ai>
More information about the linux-arm-kernel
mailing list