All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] drivers: spi - add parenthesis for sizeof
@ 2021-05-18  1:38 Zhiqi Song
  2021-05-18  1:38 ` [PATCH 1/7] spi: lm70llp: " Zhiqi Song
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Zhiqi Song @ 2021-05-18  1:38 UTC (permalink / raw)
  To: broonie; +Cc: linux-spi, linux-kernel, linuxarm, Zhiqi Song

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH 1/7] spi: lm70llp: add parenthesis for sizeof
  2021-05-18  1:38 [PATCH 0/7] drivers: spi - add parenthesis for sizeof Zhiqi Song
@ 2021-05-18  1:38 ` Zhiqi Song
  2021-05-18  1:38 ` [PATCH 2/7] spi: mpc512x-psc: " Zhiqi Song
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Zhiqi Song @ 2021-05-18  1:38 UTC (permalink / raw)
  To: broonie
  Cc: linux-spi, linux-kernel, linuxarm, Zhiqi Song, Kaiwan N Billimoria

Fix missing parenthesis of sizeof reported by checkpatch.pl:
 WARNING: sizeof *pp should be sizeof(*pp).

The kernel coding style suggests thinking of sizeof as a function
and add parenthesis.

Cc: Kaiwan N Billimoria <kaiwan@designergraphix.com>
Signed-off-by: Zhiqi Song <songzhiqi1@huawei.com>
---
 drivers/spi/spi-lm70llp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-lm70llp.c b/drivers/spi/spi-lm70llp.c
index f914b8d..ead0507 100644
--- a/drivers/spi/spi-lm70llp.c
+++ b/drivers/spi/spi-lm70llp.c
@@ -202,7 +202,7 @@ static void spi_lm70llp_attach(struct parport *p)
 	 * the lm70 driver could verify it, reading the manf ID.
 	 */
 
-	master = spi_alloc_master(p->physport->dev, sizeof *pp);
+	master = spi_alloc_master(p->physport->dev, sizeof(*pp));
 	if (!master) {
 		status = -ENOMEM;
 		goto out_fail;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 2/7] spi: mpc512x-psc: add parenthesis for sizeof
  2021-05-18  1:38 [PATCH 0/7] drivers: spi - add parenthesis for sizeof Zhiqi Song
  2021-05-18  1:38 ` [PATCH 1/7] spi: lm70llp: " Zhiqi Song
@ 2021-05-18  1:38 ` Zhiqi Song
  2021-05-18  1:38 ` [PATCH 3/7] spi: mpc52xx: " Zhiqi Song
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Zhiqi Song @ 2021-05-18  1:38 UTC (permalink / raw)
  To: broonie; +Cc: linux-spi, linux-kernel, linuxarm, Zhiqi Song

Fix missing parenthesis of sizeof reported by checkpatch.pl:
 WARNING: sizeof *pp should be sizeof(*pp).

The kernel coding style suggests thinking of sizeof as a function
and add parenthesis.

Signed-off-by: Zhiqi Song <songzhiqi1@huawei.com>
---
 drivers/spi/spi-mpc512x-psc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/spi-mpc512x-psc.c b/drivers/spi/spi-mpc512x-psc.c
index ea1b079..78a9bca 100644
--- a/drivers/spi/spi-mpc512x-psc.c
+++ b/drivers/spi/spi-mpc512x-psc.c
@@ -369,7 +369,7 @@ static int mpc512x_psc_spi_setup(struct spi_device *spi)
 		return -EINVAL;
 
 	if (!cs) {
-		cs = kzalloc(sizeof *cs, GFP_KERNEL);
+		cs = kzalloc(sizeof(*cs), GFP_KERNEL);
 		if (!cs)
 			return -ENOMEM;
 
@@ -491,7 +491,7 @@ static int mpc512x_psc_spi_do_probe(struct device *dev, u32 regaddr,
 	void *tempp;
 	struct clk *clk;
 
-	master = spi_alloc_master(dev, sizeof *mps);
+	master = spi_alloc_master(dev, sizeof(*mps));
 	if (master == NULL)
 		return -ENOMEM;
 
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 3/7] spi: mpc52xx: add parenthesis for sizeof
  2021-05-18  1:38 [PATCH 0/7] drivers: spi - add parenthesis for sizeof Zhiqi Song
  2021-05-18  1:38 ` [PATCH 1/7] spi: lm70llp: " Zhiqi Song
  2021-05-18  1:38 ` [PATCH 2/7] spi: mpc512x-psc: " Zhiqi Song
@ 2021-05-18  1:38 ` Zhiqi Song
  2021-05-18  1:38 ` [PATCH 4/7] spi: mpc52xx-psc: " Zhiqi Song
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Zhiqi Song @ 2021-05-18  1:38 UTC (permalink / raw)
  To: broonie; +Cc: linux-spi, linux-kernel, linuxarm, Zhiqi Song

Fix missing parenthesis of sizeof reported by checkpatch.pl:
 WARNING: sizeof *pp should be sizeof(*pp).

The kernel coding style suggests thinking of sizeof as a function
and add parenthesis.

Signed-off-by: Zhiqi Song <songzhiqi1@huawei.com>
---
 drivers/spi/spi-mpc52xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-mpc52xx.c b/drivers/spi/spi-mpc52xx.c
index 124cba7..5104152 100644
--- a/drivers/spi/spi-mpc52xx.c
+++ b/drivers/spi/spi-mpc52xx.c
@@ -415,7 +415,7 @@ static int mpc52xx_spi_probe(struct platform_device *op)
 	}
 
 	dev_dbg(&op->dev, "allocating spi_master struct\n");
-	master = spi_alloc_master(&op->dev, sizeof *ms);
+	master = spi_alloc_master(&op->dev, sizeof(*ms));
 	if (!master) {
 		rc = -ENOMEM;
 		goto err_alloc;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 4/7] spi: mpc52xx-psc: add parenthesis for sizeof
  2021-05-18  1:38 [PATCH 0/7] drivers: spi - add parenthesis for sizeof Zhiqi Song
                   ` (2 preceding siblings ...)
  2021-05-18  1:38 ` [PATCH 3/7] spi: mpc52xx: " Zhiqi Song
@ 2021-05-18  1:38 ` Zhiqi Song
  2021-05-18  1:38 ` [PATCH 5/7] spi: omap2-mcspi: " Zhiqi Song
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Zhiqi Song @ 2021-05-18  1:38 UTC (permalink / raw)
  To: broonie; +Cc: linux-spi, linux-kernel, linuxarm, Zhiqi Song

Fix missing parenthesis of sizeof reported by checkpatch.pl:
 WARNING: sizeof *pp should be sizeof(*pp).

The kernel coding style suggests thinking of sizeof as a function
and add parenthesis.

Signed-off-by: Zhiqi Song <songzhiqi1@huawei.com>
---
 drivers/spi/spi-mpc52xx-psc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/spi-mpc52xx-psc.c b/drivers/spi/spi-mpc52xx-psc.c
index 17935e7..21ef5d4 100644
--- a/drivers/spi/spi-mpc52xx-psc.c
+++ b/drivers/spi/spi-mpc52xx-psc.c
@@ -265,7 +265,7 @@ static int mpc52xx_psc_spi_setup(struct spi_device *spi)
 		return -EINVAL;
 
 	if (!cs) {
-		cs = kzalloc(sizeof *cs, GFP_KERNEL);
+		cs = kzalloc(sizeof(*cs), GFP_KERNEL);
 		if (!cs)
 			return -ENOMEM;
 		spi->controller_state = cs;
@@ -365,7 +365,7 @@ static int mpc52xx_psc_spi_do_probe(struct device *dev, u32 regaddr,
 	struct spi_master *master;
 	int ret;
 
-	master = spi_alloc_master(dev, sizeof *mps);
+	master = spi_alloc_master(dev, sizeof(*mps));
 	if (master == NULL)
 		return -ENOMEM;
 
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 5/7] spi: omap2-mcspi: add parenthesis for sizeof
  2021-05-18  1:38 [PATCH 0/7] drivers: spi - add parenthesis for sizeof Zhiqi Song
                   ` (3 preceding siblings ...)
  2021-05-18  1:38 ` [PATCH 4/7] spi: mpc52xx-psc: " Zhiqi Song
@ 2021-05-18  1:38 ` Zhiqi Song
  2021-05-18  1:38 ` [PATCH 6/7] spi: omap-uwire: " Zhiqi Song
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Zhiqi Song @ 2021-05-18  1:38 UTC (permalink / raw)
  To: broonie; +Cc: linux-spi, linux-kernel, linuxarm, Zhiqi Song

Fix missing parenthesis of sizeof reported by checkpatch.pl:
 WARNING: sizeof *pp should be sizeof(*pp).

The kernel coding style suggests thinking of sizeof as a function
and add parenthesis.

Signed-off-by: Zhiqi Song <songzhiqi1@huawei.com>
---
 drivers/spi/spi-omap2-mcspi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c
index 999c227..a06c8f4 100644
--- a/drivers/spi/spi-omap2-mcspi.c
+++ b/drivers/spi/spi-omap2-mcspi.c
@@ -1040,7 +1040,7 @@ static int omap2_mcspi_setup(struct spi_device *spi)
 	struct omap2_mcspi_cs	*cs = spi->controller_state;
 
 	if (!cs) {
-		cs = kzalloc(sizeof *cs, GFP_KERNEL);
+		cs = kzalloc(sizeof(*cs), GFP_KERNEL);
 		if (!cs)
 			return -ENOMEM;
 		cs->base = mcspi->base + spi->chip_select * 0x14;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 6/7] spi: omap-uwire: add parenthesis for sizeof
  2021-05-18  1:38 [PATCH 0/7] drivers: spi - add parenthesis for sizeof Zhiqi Song
                   ` (4 preceding siblings ...)
  2021-05-18  1:38 ` [PATCH 5/7] spi: omap2-mcspi: " Zhiqi Song
@ 2021-05-18  1:38 ` Zhiqi Song
  2021-05-18  1:38 ` [PATCH 7/7] spi: ppc4xx: " Zhiqi Song
  2021-05-20 21:07 ` [PATCH 0/7] drivers: spi - " Mark Brown
  7 siblings, 0 replies; 9+ messages in thread
From: Zhiqi Song @ 2021-05-18  1:38 UTC (permalink / raw)
  To: broonie; +Cc: linux-spi, linux-kernel, linuxarm, Zhiqi Song

Fix missing parenthesis of sizeof reported by checkpatch.pl:
 WARNING: sizeof *pp should be sizeof(*pp).

The kernel coding style suggests thinking of sizeof as a function
and add parenthesis.

Signed-off-by: Zhiqi Song <songzhiqi1@huawei.com>
---
 drivers/spi/spi-omap-uwire.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-omap-uwire.c b/drivers/spi/spi-omap-uwire.c
index ceb479f..c975e86 100644
--- a/drivers/spi/spi-omap-uwire.c
+++ b/drivers/spi/spi-omap-uwire.c
@@ -453,7 +453,7 @@ static int uwire_probe(struct platform_device *pdev)
 	struct uwire_spi	*uwire;
 	int			status;
 
-	master = spi_alloc_master(&pdev->dev, sizeof *uwire);
+	master = spi_alloc_master(&pdev->dev, sizeof(*uwire));
 	if (!master)
 		return -ENODEV;
 
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 7/7] spi: ppc4xx: add parenthesis for sizeof
  2021-05-18  1:38 [PATCH 0/7] drivers: spi - add parenthesis for sizeof Zhiqi Song
                   ` (5 preceding siblings ...)
  2021-05-18  1:38 ` [PATCH 6/7] spi: omap-uwire: " Zhiqi Song
@ 2021-05-18  1:38 ` Zhiqi Song
  2021-05-20 21:07 ` [PATCH 0/7] drivers: spi - " Mark Brown
  7 siblings, 0 replies; 9+ messages in thread
From: Zhiqi Song @ 2021-05-18  1:38 UTC (permalink / raw)
  To: broonie; +Cc: linux-spi, linux-kernel, linuxarm, Zhiqi Song

Fix missing parenthesis of sizeof reported by checkpatch.pl:
 WARNING: sizeof *pp should be sizeof(*pp).

The kernel coding style suggests thinking of sizeof as a function
and add parenthesis.

Signed-off-by: Zhiqi Song <songzhiqi1@huawei.com>
---
 drivers/spi/spi-ppc4xx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/spi-ppc4xx.c b/drivers/spi/spi-ppc4xx.c
index 59d201a..d65f047 100644
--- a/drivers/spi/spi-ppc4xx.c
+++ b/drivers/spi/spi-ppc4xx.c
@@ -223,7 +223,7 @@ static int spi_ppc4xx_setup(struct spi_device *spi)
 	}
 
 	if (cs == NULL) {
-		cs = kzalloc(sizeof *cs, GFP_KERNEL);
+		cs = kzalloc(sizeof(*cs), GFP_KERNEL);
 		if (!cs)
 			return -ENOMEM;
 		spi->controller_state = cs;
@@ -349,7 +349,7 @@ static int spi_ppc4xx_of_probe(struct platform_device *op)
 	int ret;
 	const unsigned int *clk;
 
-	master = spi_alloc_master(dev, sizeof *hw);
+	master = spi_alloc_master(dev, sizeof(*hw));
 	if (master == NULL)
 		return -ENOMEM;
 	master->dev.of_node = np;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH 0/7] drivers: spi - add parenthesis for sizeof
  2021-05-18  1:38 [PATCH 0/7] drivers: spi - add parenthesis for sizeof Zhiqi Song
                   ` (6 preceding siblings ...)
  2021-05-18  1:38 ` [PATCH 7/7] spi: ppc4xx: " Zhiqi Song
@ 2021-05-20 21:07 ` Mark Brown
  7 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2021-05-20 21:07 UTC (permalink / raw)
  To: Zhiqi Song; +Cc: Mark Brown, linuxarm, linux-kernel, linux-spi

On Tue, 18 May 2021 09:38:15 +0800, Zhiqi Song wrote:
> 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
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next

Thanks!

[1/7] spi: lm70llp: add parenthesis for sizeof
      commit: a2bd5afd59c1dec8e559096c3a5c912360c267ca
[2/7] spi: mpc512x-psc: add parenthesis for sizeof
      commit: 722cb2b197e125d6816aac43ec2d411c7b22daa9
[3/7] spi: mpc52xx: add parenthesis for sizeof
      commit: ac7357ac769e3b4bd52e691f22d745c89126069f
[4/7] spi: mpc52xx-psc: add parenthesis for sizeof
      commit: 75d4c2d64b30c8583b82afdcc9dc4db2083dee5b
[5/7] spi: omap2-mcspi: add parenthesis for sizeof
      commit: 8267dc6d6889235e6dac21156cc9d6e5d5319d3b
[6/7] spi: omap-uwire: add parenthesis for sizeof
      commit: 19bae51b0191129fd9a6d163678404b77cab24c9
[7/7] spi: ppc4xx: add parenthesis for sizeof
      commit: 07c74f844b740a858e40fe6c15dd9a2f3b7f6476

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-05-20 21:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-18  1:38 [PATCH 0/7] drivers: spi - add parenthesis for sizeof Zhiqi Song
2021-05-18  1:38 ` [PATCH 1/7] spi: lm70llp: " Zhiqi Song
2021-05-18  1:38 ` [PATCH 2/7] spi: mpc512x-psc: " Zhiqi Song
2021-05-18  1:38 ` [PATCH 3/7] spi: mpc52xx: " Zhiqi Song
2021-05-18  1:38 ` [PATCH 4/7] spi: mpc52xx-psc: " Zhiqi Song
2021-05-18  1:38 ` [PATCH 5/7] spi: omap2-mcspi: " Zhiqi Song
2021-05-18  1:38 ` [PATCH 6/7] spi: omap-uwire: " Zhiqi Song
2021-05-18  1:38 ` [PATCH 7/7] spi: ppc4xx: " Zhiqi Song
2021-05-20 21:07 ` [PATCH 0/7] drivers: spi - " Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.