All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] spi: dw: Remove unused members from struct chip_data
@ 2018-01-26 14:24 Jarkko Nikula
       [not found] ` <20180126142449.18954-1-jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Jarkko Nikula @ 2018-01-26 14:24 UTC (permalink / raw)
  To: linux-spi-u79uwXL29TY76Z2rM5mHXA
  Cc: Mark Brown, Andy Shevchenko, Jarkko Nikula

Local struct chip_data has two members that are not used:

- cs. Looks like was never used
- enable_dma. Became unused by the commit f89a6d8f43eb ("spi: dw-mid: move
  to use core SPI DMA mappings").

Signed-off-by: Jarkko Nikula <jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
---
 drivers/spi/spi-dw.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/spi/spi-dw.c b/drivers/spi/spi-dw.c
index b217c22ff72f..211cc7d75bf8 100644
--- a/drivers/spi/spi-dw.c
+++ b/drivers/spi/spi-dw.c
@@ -30,13 +30,11 @@
 
 /* Slave spi_dev related */
 struct chip_data {
-	u8 cs;			/* chip select pin */
 	u8 tmode;		/* TR/TO/RO/EEPROM */
 	u8 type;		/* SPI/SSP/MicroWire */
 
 	u8 poll_mode;		/* 1 means use poll mode */
 
-	u8 enable_dma;
 	u16 clk_div;		/* baud rate divider */
 	u32 speed_hz;		/* baud rate */
 	void (*cs_control)(u32 command);
-- 
2.15.1

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] spi: dw: Remove unused members from struct chip_data
       [not found] ` <20180126142449.18954-1-jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
@ 2018-01-26 14:34   ` Andy Shevchenko
  2018-01-26 15:26   ` Applied "spi: dw: Remove unused members from struct chip_data" to the spi tree Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Andy Shevchenko @ 2018-01-26 14:34 UTC (permalink / raw)
  To: Jarkko Nikula, linux-spi-u79uwXL29TY76Z2rM5mHXA; +Cc: Mark Brown

On Fri, 2018-01-26 at 16:24 +0200, Jarkko Nikula wrote:
> Local struct chip_data has two members that are not used:
> 
> - cs. Looks like was never used
> - enable_dma. Became unused by the commit f89a6d8f43eb ("spi: dw-mid:
> move
>   to use core SPI DMA mappings").

Good clean up!

Acked-by: Andy Shevchenko <andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>

> Signed-off-by: Jarkko Nikula <jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
> ---
>  drivers/spi/spi-dw.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/spi/spi-dw.c b/drivers/spi/spi-dw.c
> index b217c22ff72f..211cc7d75bf8 100644
> --- a/drivers/spi/spi-dw.c
> +++ b/drivers/spi/spi-dw.c
> @@ -30,13 +30,11 @@
>  
>  /* Slave spi_dev related */
>  struct chip_data {
> -	u8 cs;			/* chip select pin */
>  	u8 tmode;		/* TR/TO/RO/EEPROM */
>  	u8 type;		/* SPI/SSP/MicroWire */
>  
>  	u8 poll_mode;		/* 1 means use poll mode */
>  
> -	u8 enable_dma;
>  	u16 clk_div;		/* baud rate divider */
>  	u32 speed_hz;		/* baud rate */
>  	void (*cs_control)(u32 command);

-- 
Andy Shevchenko <andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
Intel Finland Oy
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Applied "spi: dw: Remove unused members from struct chip_data" to the spi tree
       [not found] ` <20180126142449.18954-1-jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
  2018-01-26 14:34   ` Andy Shevchenko
@ 2018-01-26 15:26   ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2018-01-26 15:26 UTC (permalink / raw)
  To: Jarkko Nikula
  Cc: Andy Shevchenko, Mark Brown, linux-spi-u79uwXL29TY76Z2rM5mHXA,
	Mark Brown, Andy Shevchenko, linux-spi-u79uwXL29TY76Z2rM5mHXA

The patch

   spi: dw: Remove unused members from struct chip_data

has been applied to the spi tree at

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

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

>From 993181e151311936d7a343fccd6cc4cebe83ad81 Mon Sep 17 00:00:00 2001
From: Jarkko Nikula <jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
Date: Fri, 26 Jan 2018 16:24:49 +0200
Subject: [PATCH] spi: dw: Remove unused members from struct chip_data

Local struct chip_data has two members that are not used:

- cs. Looks like was never used
- enable_dma. Became unused by the commit f89a6d8f43eb ("spi: dw-mid: move
  to use core SPI DMA mappings").

Signed-off-by: Jarkko Nikula <jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
Acked-by: Andy Shevchenko <andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
Signed-off-by: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
---
 drivers/spi/spi-dw.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/spi/spi-dw.c b/drivers/spi/spi-dw.c
index b217c22ff72f..211cc7d75bf8 100644
--- a/drivers/spi/spi-dw.c
+++ b/drivers/spi/spi-dw.c
@@ -30,13 +30,11 @@
 
 /* Slave spi_dev related */
 struct chip_data {
-	u8 cs;			/* chip select pin */
 	u8 tmode;		/* TR/TO/RO/EEPROM */
 	u8 type;		/* SPI/SSP/MicroWire */
 
 	u8 poll_mode;		/* 1 means use poll mode */
 
-	u8 enable_dma;
 	u16 clk_div;		/* baud rate divider */
 	u32 speed_hz;		/* baud rate */
 	void (*cs_control)(u32 command);
-- 
2.15.1

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2018-01-26 15:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-26 14:24 [PATCH] spi: dw: Remove unused members from struct chip_data Jarkko Nikula
     [not found] ` <20180126142449.18954-1-jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2018-01-26 14:34   ` Andy Shevchenko
2018-01-26 15:26   ` Applied "spi: dw: Remove unused members from struct chip_data" to the spi tree 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.