Skip to content

Commit f4f7736

Browse files
can: mcp251xfd: rename all user facing strings to mcp251xfd
In [1] Geert noted that the autodetect compatible for the mcp25xxfd driver, which is "microchip,mcp25xxfd" might be too generic and overlap with upcoming, but incompatible chips. In the previous patch the autodetect DT compatbile has been renamed to "microchip,mcp251xfd", this patch changes all user facing strings from "mcp25xxfd" to "mcp251xfd" and "MCP25XXFD" to "MCP251XFD", including: - kconfig symbols - name of kernel module - DT and SPI compatible [1] http://lore.kernel.org/r/CAMuHMdVkwGjr6dJuMyhQNqFoJqbh6Ec5V2b5LenCshwpM2SDsQ@mail.gmail.com Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 1f0e21a commit f4f7736

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

drivers/net/can/spi/mcp251xfd/Kconfig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22

3-
config CAN_MCP25XXFD
4-
tristate "Microchip MCP25xxFD SPI CAN controllers"
3+
config CAN_MCP251XFD
4+
tristate "Microchip MCP251xFD SPI CAN controllers"
55
select REGMAP
66
help
7-
Driver for the Microchip MCP25XXFD SPI FD-CAN controller
7+
Driver for the Microchip MCP251XFD SPI FD-CAN controller
88
family.
99

10-
config CAN_MCP25XXFD_SANITY
11-
depends on CAN_MCP25XXFD
10+
config CAN_MCP251XFD_SANITY
11+
depends on CAN_MCP251XFD
1212
bool "Additional Sanity Checks"
1313
help
1414
This option enables additional sanity checks in the driver,
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22

3-
obj-$(CONFIG_CAN_MCP25XXFD) += mcp25xxfd.o
3+
obj-$(CONFIG_CAN_MCP251XFD) += mcp251xfd.o
44

5-
mcp25xxfd-objs :=
6-
mcp25xxfd-objs += mcp251xfd-core.o
7-
mcp25xxfd-objs += mcp251xfd-crc16.o
8-
mcp25xxfd-objs += mcp251xfd-regmap.o
5+
mcp251xfd-objs :=
6+
mcp251xfd-objs += mcp251xfd-core.o
7+
mcp251xfd-objs += mcp251xfd-crc16.o
8+
mcp251xfd-objs += mcp251xfd-regmap.o

drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#include "mcp251xfd.h"
2727

28-
#define DEVICE_NAME "mcp25xxfd"
28+
#define DEVICE_NAME "mcp251xfd"
2929

3030
static const struct mcp25xxfd_devtype_data mcp25xxfd_devtype_data_mcp2517fd = {
3131
.quirks = MCP25XXFD_QUIRK_MAB_NO_WARN | MCP25XXFD_QUIRK_CRC_REG |
@@ -2923,5 +2923,5 @@ static struct spi_driver mcp25xxfd_driver = {
29232923
module_spi_driver(mcp25xxfd_driver);
29242924

29252925
MODULE_AUTHOR("Marc Kleine-Budde <[email protected]>");
2926-
MODULE_DESCRIPTION("Microchip MCP25xxFD Family CAN controller driver");
2926+
MODULE_DESCRIPTION("Microchip MCP251xFD Family CAN controller driver");
29272927
MODULE_LICENSE("GPL v2");

0 commit comments

Comments
 (0)