OSDN Git Service

spi: Remove repeated struct declaration
authorWan Jiabing <wanjiabing@vivo.com>
Thu, 1 Apr 2021 06:59:04 +0000 (14:59 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 1 Apr 2021 11:19:45 +0000 (12:19 +0100)
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>
Link: https://lore.kernel.org/r/20210401065904.994121-1-wanjiabing@vivo.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/spi/spi.h

index 6d5b186..4b192e7 100644 (file)
@@ -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