[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211223011358.4031459-46-davidm@egauge.net>
Date: Thu, 23 Dec 2021 01:14:07 +0000 (UTC)
From: David Mosberger-Tang <davidm@...uge.net>
To: Ajay Singh <ajay.kathat@...rochip.com>
Cc: Claudiu Beznea <claudiu.beznea@...rochip.com>,
Kalle Valo <kvalo@...nel.org>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
David Mosberger-Tang <davidm@...uge.net>
Subject: [PATCH v2 45/50] wilc1000: move struct wilc_spi declaration
Just move the structure down by a few lines so that a later patch can
be understood more easily. No functional change.
Signed-off-by: David Mosberger-Tang <davidm@...uge.net>
---
drivers/net/wireless/microchip/wilc1000/spi.c | 22 +++++++++----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/drivers/net/wireless/microchip/wilc1000/spi.c b/drivers/net/wireless/microchip/wilc1000/spi.c
index 2c2ed4b09efd5..5f73b3d2d2112 100644
--- a/drivers/net/wireless/microchip/wilc1000/spi.c
+++ b/drivers/net/wireless/microchip/wilc1000/spi.c
@@ -41,17 +41,6 @@ MODULE_PARM_DESC(enable_crc16,
*/
#define WILC_SPI_RSP_HDR_EXTRA_DATA 8
-struct wilc_spi {
- bool isinit; /* true if SPI protocol has been configured */
- bool probing_crc; /* true if we're probing chip's CRC config */
- bool crc7_enabled; /* true if crc7 is currently enabled */
- bool crc16_enabled; /* true if crc16 is currently enabled */
- struct wilc_gpios {
- struct gpio_desc *enable; /* ENABLE GPIO or NULL */
- struct gpio_desc *reset; /* RESET GPIO or NULL */
- } gpios;
-};
-
static const struct wilc_hif_func wilc_hif_spi;
static int wilc_spi_reset(struct wilc *wilc);
@@ -109,6 +98,17 @@ static int wilc_spi_reset(struct wilc *wilc);
#define WILC_SPI_COMMAND_STAT_SUCCESS 0
#define WILC_GET_RESP_HDR_START(h) (((h) >> 4) & 0xf)
+struct wilc_spi {
+ bool isinit; /* true if SPI protocol has been configured */
+ bool probing_crc; /* true if we're probing chip's CRC config */
+ bool crc7_enabled; /* true if crc7 is currently enabled */
+ bool crc16_enabled; /* true if crc16 is currently enabled */
+ struct wilc_gpios {
+ struct gpio_desc *enable; /* ENABLE GPIO or NULL */
+ struct gpio_desc *reset; /* RESET GPIO or NULL */
+ } gpios;
+};
+
struct wilc_spi_cmd {
u8 cmd_type;
union {
--
2.25.1
Powered by blists - more mailing lists