Skip to content

Commit 4347d34

Browse files
dmosbergerKalle Valo
authored andcommitted
wilc1000: Rename SPI driver from "WILC_SPI" to "wilc1000_spi"
The name "wilc1000_spi" follows normal Linux conventions and also is analogous to the SDIO driver, which uses "wilc1000_sdio". Signed-off-by: David Mosberger-Tang <davidm@egauge.net> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20211209044411.3482259-2-davidm@egauge.net
1 parent 73bbef6 commit 4347d34

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/net/wireless/microchip/wilc1000/spi.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#include "netdev.h"
1313
#include "cfg80211.h"
1414

15+
#define SPI_MODALIAS "wilc1000_spi"
16+
1517
static bool enable_crc7; /* protect SPI commands with CRC7 */
1618
module_param(enable_crc7, bool, 0644);
1719
MODULE_PARM_DESC(enable_crc7,
@@ -209,7 +211,7 @@ MODULE_DEVICE_TABLE(spi, wilc_spi_id);
209211

210212
static struct spi_driver wilc_spi_driver = {
211213
.driver = {
212-
.name = MODALIAS,
214+
.name = SPI_MODALIAS,
213215
.of_match_table = wilc_of_match,
214216
},
215217
.id_table = wilc_spi_id,

drivers/net/wireless/microchip/wilc1000/wlan.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,6 @@
213213
#define WILC_RX_BUFF_SIZE (96 * 1024)
214214
#define WILC_TX_BUFF_SIZE (64 * 1024)
215215

216-
#define MODALIAS "WILC_SPI"
217-
218216
#define NQUEUES 4
219217
#define AC_BUFFER_SIZE 1000
220218

0 commit comments

Comments
 (0)