Re: [PATCH 1/1] spi: lpspi: Add support for 'num-cs' property

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 07, 2021 at 11:41:14AM +0100, Alexander Stein wrote:

> +	if (!device_property_read_u32(&pdev->dev, "num-cs", &num_cs))
> +		controller->num_chipselect = num_cs;
> +	else
> +		controller->num_chipselect = 1;

Do we need to use the num_cs property or can we just set num_chipselect
to whatever the maximum value that can be set is?  I've never been 100%
clear on why num-cs is in the binding.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux