Skip to content
Commit 7803a3a5 authored by Tristan Honscheid's avatar Tristan Honscheid Committed by Carles Cufí
Browse files

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: default avatarTristan Honscheid <honscheid@google.com>
parent bdb3fd0a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment