xec: spi: Remove .cs = NULL
in spi_config initializer
Following #56576, the `cs` field in `struct spi_config` is of type `struct spi_cs_control` instead of a pointer to the same type. `spi_xec_qmspi_ldma.c:qmspi_xec_init` tries assigning `NULL` to the `.cs` field through a designated initializer, which causes a compilation error. This PR simply removes the `.cs = NULL` line. The designated initializer will automatically zeroize the underlying GPIO pin info, which should have the same effect that setting the pointer to NULL did previously. Signed-off-by: Tristan Honscheid <honscheid@google.com>
This commit is contained in:
parent
bdb3fd0ae9
commit
7803a3a5c5
1 changed files with 0 additions and 1 deletions
|
@ -970,7 +970,6 @@ static int qmspi_xec_init(const struct device *dev)
|
|||
const struct spi_config spi_cfg = {
|
||||
.frequency = cfg->clock_freq,
|
||||
.operation = SPI_LINES_SINGLE | SPI_WORD_SET(8),
|
||||
.cs = NULL,
|
||||
};
|
||||
|
||||
ret = qmspi_configure(dev, &spi_cfg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue