Skip to content

SPI: Fine-tuning for several function implementations

SF Markus Elfring kernel-janitors linux-spi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 23 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17spi: Use kcalloc() in spi_register_board_info()drivers/spi/spi.c+1 -11 reply
2/17spi: Adjust checks for null pointers in two functionsdrivers/spi/spi.c+4 -41 reply
3/17spi: fsl: Use kcalloc() in of_fsl_spi_get_chipselects()drivers/spi/spi-fsl-spi.c+1 -11 reply
4/17spi: fsl: Use kmalloc_array() in of_fsl_spi_get_chipselects()drivers/spi/spi-fsl-spi.c+2 -12 replies
5/17spi: fsl: Combine substrings for two messagesdrivers/spi/spi-fsl-spi.c+6 -61 reply
6/17spi/mpc52xx: Use kmalloc_array() in mpc52xx_spi_probe()drivers/spi/spi-mpc52xx.c+3 -21 reply
7/17spi/mpc52xx: Combine substrings for two messagesdrivers/spi/spi-mpc52xx.c+3 -42 replies
8/17spi/ppc4xx: Use kcalloc() in spi_ppc4xx_of_probe()drivers/spi/spi-ppc4xx.c+1 -11 reply
9/17spi/ppc4xx: Combine substrings for a message in spi_ppc4xx_of_probe()drivers/spi/spi-ppc4xx.c+3 -21 reply
10/17spi/ppc4xx: Adjust checks for null pointers in two functionsdrivers/spi/spi-ppc4xx.c+4 -45 replies
11/17spi/topcliff-pch: Use kcalloc() in pch_spi_handle_dma()drivers/spi/spi-topcliff-pch.c+2 -21 reply
12/17spi/topcliff-pch: Improve size determinations in pch_spi_probe()drivers/spi/spi-topcliff-pch.c+2 -21 reply
13/17spi/topcliff-pch: Delete an unnecessary return statement in two functionsdrivers/spi/spi-topcliff-pch.c+0 -21 reply
14/17spi/topcliff-pch: Adjust six checks for null pointersdrivers/spi/spi-topcliff-pch.c+6 -91 reply
15/17spi/topcliff-pch: Combine substrings for four messagesdrivers/spi/spi-topcliff-pch.c+11 -91 reply
16/17spi/topcliff-pch: Delete an error message for a failed memory allocation in pch_spi_set_tx()drivers/spi/spi-topcliff-pch.c+0 -11 reply
17/17spi/topcliff-pch: One check less in pch_spi_set_tx()drivers/spi/spi-topcliff-pch.c+14 -111 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/17] SPI: Fine-tuning for several function implementations

From: Markus Elfring <[email protected]>
Date: Fri, 13 Jan 2017 17:50:23 +0100

Several update suggestions were taken into account from static source code analysis.

Markus Elfring (17):
Use kcalloc() in spi_register_board_info()
Adjust checks for null pointers in two functions
fsl: Use kcalloc() in of_fsl_spi_get_chipselects()
fsl: Use kmalloc_array() in of_fsl_spi_get_chipselects()
fsl: Combine substrings for two messages
mpc52xx: Use kmalloc_array() in mpc52xx_spi_probe()
mpc52xx: Combine substrings for two messages
ppc4xx: Use kcalloc() in spi_ppc4xx_of_probe()
ppc4xx: Combine substrings for a message in spi_ppc4xx_of_probe()
ppc4xx: Adjust checks for null pointers in two functions
topcliff-pch: Use kcalloc() in pch_spi_handle_dma()
topcliff-pch: Improve size determinations in pch_spi_probe()
topcliff-pch: Delete an unnecessary return statement in two functions
topcliff-pch: Adjust six checks for null pointers
topcliff-pch: Combine substrings for four messages
topcliff-pch: Delete an error message for a failed memory allocation in pch_spi_set_tx()
topcliff-pch: One check less in pch_spi_set_tx()

 drivers/spi/spi-fsl-spi.c      | 17 +++++-----
 drivers/spi/spi-mpc52xx.c      | 12 +++----
 drivers/spi/spi-ppc4xx.c       | 15 ++++-----
 drivers/spi/spi-topcliff-pch.c | 71 +++++++++++++++++++++---------------------
 drivers/spi/spi.c              | 10 +++---
 5 files changed, 63 insertions(+), 62 deletions(-)
Signature · 1 line
2.11.0