Skip to content

Commit 4cc4ace

Browse files
abdurrahman-nexthopbroonie
authored andcommitted
spi: xilinx: use device property accessors.
Switch to device property accessors. Signed-off-by: Abdurrahman Hussain <abdurrahman@nexthop.ai> Link: https://patch.msgid.link/20260203-spi-xilinx-v4-1-42f7c326061b@nexthop.ai Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 4c9d537 commit 4cc4ace

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

drivers/spi/spi-xilinx.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -405,11 +405,11 @@ static int xilinx_spi_probe(struct platform_device *pdev)
405405
bits_per_word = pdata->bits_per_word;
406406
force_irq = pdata->force_irq;
407407
} else {
408-
of_property_read_u32(pdev->dev.of_node, "xlnx,num-ss-bits",
409-
&num_cs);
410-
ret = of_property_read_u32(pdev->dev.of_node,
411-
"xlnx,num-transfer-bits",
412-
&bits_per_word);
408+
device_property_read_u32(&pdev->dev, "xlnx,num-ss-bits",
409+
&num_cs);
410+
ret = device_property_read_u32(&pdev->dev,
411+
"xlnx,num-transfer-bits",
412+
&bits_per_word);
413413
if (ret)
414414
bits_per_word = 8;
415415
}

0 commit comments

Comments
 (0)