Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge series "drivers: spi - add parenthesis for sizeof" from Zhiqi Song <songzhiqi1@huawei.com>:

This patchset fixes missing parentheses of sizeof reported by checkpatch.pl
under drivers/spi/.

Zhiqi Song (7):
spi: lm70llp: add parenthesis for sizeof
spi: mpc512x-psc: add parenthesis for sizeof
spi: mpc52xx: add parenthesis for sizeof
spi: mpc52xx-psc: add parenthesis for sizeof
spi: omap2-mcspi: add parenthesis for sizeof
spi: omap-uwire: add parenthesis for sizeof
spi: ppc4xx: add parenthesis for sizeof

drivers/spi/spi-lm70llp.c | 2 +-
drivers/spi/spi-mpc512x-psc.c | 4 ++--
drivers/spi/spi-mpc52xx-psc.c | 4 ++--
drivers/spi/spi-mpc52xx.c | 2 +-
drivers/spi/spi-omap-uwire.c | 2 +-
drivers/spi/spi-omap2-mcspi.c | 2 +-
drivers/spi/spi-ppc4xx.c | 4 ++--
7 files changed, 10 insertions(+), 10 deletions(-)

--
2.7.4

+10 -10
+1 -1
drivers/spi/spi-lm70llp.c
··· 202 202 * the lm70 driver could verify it, reading the manf ID. 203 203 */ 204 204 205 - master = spi_alloc_master(p->physport->dev, sizeof *pp); 205 + master = spi_alloc_master(p->physport->dev, sizeof(*pp)); 206 206 if (!master) { 207 207 status = -ENOMEM; 208 208 goto out_fail;
+2 -2
drivers/spi/spi-mpc512x-psc.c
··· 369 369 return -EINVAL; 370 370 371 371 if (!cs) { 372 - cs = kzalloc(sizeof *cs, GFP_KERNEL); 372 + cs = kzalloc(sizeof(*cs), GFP_KERNEL); 373 373 if (!cs) 374 374 return -ENOMEM; 375 375 ··· 491 491 void *tempp; 492 492 struct clk *clk; 493 493 494 - master = spi_alloc_master(dev, sizeof *mps); 494 + master = spi_alloc_master(dev, sizeof(*mps)); 495 495 if (master == NULL) 496 496 return -ENOMEM; 497 497
+2 -2
drivers/spi/spi-mpc52xx-psc.c
··· 265 265 return -EINVAL; 266 266 267 267 if (!cs) { 268 - cs = kzalloc(sizeof *cs, GFP_KERNEL); 268 + cs = kzalloc(sizeof(*cs), GFP_KERNEL); 269 269 if (!cs) 270 270 return -ENOMEM; 271 271 spi->controller_state = cs; ··· 365 365 struct spi_master *master; 366 366 int ret; 367 367 368 - master = spi_alloc_master(dev, sizeof *mps); 368 + master = spi_alloc_master(dev, sizeof(*mps)); 369 369 if (master == NULL) 370 370 return -ENOMEM; 371 371
+1 -1
drivers/spi/spi-mpc52xx.c
··· 415 415 } 416 416 417 417 dev_dbg(&op->dev, "allocating spi_master struct\n"); 418 - master = spi_alloc_master(&op->dev, sizeof *ms); 418 + master = spi_alloc_master(&op->dev, sizeof(*ms)); 419 419 if (!master) { 420 420 rc = -ENOMEM; 421 421 goto err_alloc;
+1 -1
drivers/spi/spi-omap-uwire.c
··· 453 453 struct uwire_spi *uwire; 454 454 int status; 455 455 456 - master = spi_alloc_master(&pdev->dev, sizeof *uwire); 456 + master = spi_alloc_master(&pdev->dev, sizeof(*uwire)); 457 457 if (!master) 458 458 return -ENODEV; 459 459
+1 -1
drivers/spi/spi-omap2-mcspi.c
··· 1040 1040 struct omap2_mcspi_cs *cs = spi->controller_state; 1041 1041 1042 1042 if (!cs) { 1043 - cs = kzalloc(sizeof *cs, GFP_KERNEL); 1043 + cs = kzalloc(sizeof(*cs), GFP_KERNEL); 1044 1044 if (!cs) 1045 1045 return -ENOMEM; 1046 1046 cs->base = mcspi->base + spi->chip_select * 0x14;
+2 -2
drivers/spi/spi-ppc4xx.c
··· 223 223 } 224 224 225 225 if (cs == NULL) { 226 - cs = kzalloc(sizeof *cs, GFP_KERNEL); 226 + cs = kzalloc(sizeof(*cs), GFP_KERNEL); 227 227 if (!cs) 228 228 return -ENOMEM; 229 229 spi->controller_state = cs; ··· 349 349 int ret; 350 350 const unsigned int *clk; 351 351 352 - master = spi_alloc_master(dev, sizeof *hw); 352 + master = spi_alloc_master(dev, sizeof(*hw)); 353 353 if (master == NULL) 354 354 return -ENOMEM; 355 355 master->dev.of_node = np;