Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Abdurrahman Hussain and committed by
Mark Brown
4cc4ace7 4c9d5379

+5 -5
+5 -5
drivers/spi/spi-xilinx.c
··· 405 405 bits_per_word = pdata->bits_per_word; 406 406 force_irq = pdata->force_irq; 407 407 } 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); 413 413 if (ret) 414 414 bits_per_word = 8; 415 415 }