linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] linux/spi: Remove repeated struct declaration
@ 2021-04-01  6:59 Wan Jiabing
  2021-04-01 10:46 ` Mark Brown
  2021-04-01 16:15 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Wan Jiabing @ 2021-04-01  6:59 UTC (permalink / raw)
  To: Mark Brown, linux-spi, linux-kernel; +Cc: kael_w, Wan Jiabing

struct spi_transfer is declared twice. One is declared at 24th line.
The blew one is not needed though. Remove the duplicate.

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
---
 include/linux/spi/spi.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h
index 592897fa4f03..c345392a11ee 100644
--- a/include/linux/spi/spi.h
+++ b/include/linux/spi/spi.h
@@ -247,7 +247,6 @@ static inline void *spi_get_drvdata(struct spi_device *spi)
 }
 
 struct spi_message;
-struct spi_transfer;
 
 /**
  * struct spi_driver - Host side "protocol" driver
-- 
2.25.1


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

end of thread, other threads:[~2021-04-01 18:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-01  6:59 [PATCH] linux/spi: Remove repeated struct declaration Wan Jiabing
2021-04-01 10:46 ` Mark Brown
2021-04-01 16:15 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).