diff options
| author | Fabrizio Castro <[email protected]> | 2023-07-18 20:24:51 +0100 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2023-07-19 14:33:32 +0100 |
| commit | 8dc4038a026a79b6222a43ccf7adf070c4ba54ea (patch) | |
| tree | 60efd801423916848a297b3c07b05d91c74c98b9 /lib/crypto/mpi/mpi-mul.c | |
| parent | d5737d12779a171e76ad07635d1ed06a22009da7 (diff) | |
spi: rzv2m-csi: Improve data types, casting and alignment
"unsigned int" is more appropriate than "int" for the members
of "struct rzv2m_csi_priv".
Using void* rather than u8* for txbuf and rxbuf allows for
the removal of some type casting.
Remove the unnecessary casting of "data" to "struct rzv2m_csi_priv*"
in function "rzv2m_csi_irq_handler".
Also, members "bytes_per_word" and "errors" introduce gaps
in the structure.
Adjust "struct rzv2m_csi_priv" and its members usage accordingly.
Signed-off-by: Fabrizio Castro <[email protected]>
Suggested-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions