diff options
author | Martin Sperl <kernel@martin.sperl.org> | 2015-11-27 14:56:03 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-12-13 00:05:18 +0100 |
commit | 49ddedf3bfcb59a562c7db0e50aecd1422e9cdc9 (patch) | |
tree | 7cff6705e103185779a162a5f2d7b46c6ab6d6ec /drivers/spi | |
parent | Linux 4.4-rc1 (diff) | |
download | linux-49ddedf3bfcb59a562c7db0e50aecd1422e9cdc9.tar.xz linux-49ddedf3bfcb59a562c7db0e50aecd1422e9cdc9.zip |
spi: add spi_message_init_no_memset to avoid zeroing the spi_message
In the spi_loopback_test driver there is the need to initialize
a spi_message that is filled with values from a static structure.
Applying spi_message_init to such a prefilled structure results in
all the settings getting reset to zero, which is not what we want.
Copying each field of spi_message separately instead always includes
the risk that some new fields have not been implemented in the copying
code.
So here we introduce a version of spi_message_init called
spi_message_init_no_memset that does not fill the structure
with zero first, but only initializes the relevant list_heads.
Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
0 files changed, 0 insertions, 0 deletions