aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2023-11-08 15:26:55 +0100
committerLinus Walleij <linus.walleij@linaro.org>2024-01-27 23:25:52 +0100
commita2d558a605cd3490dd924339805d908740c7faab (patch)
tree9a3ab6b4a555fa2784dd16122cf6a02079508baa
parent7546f31d71d75e951381c9fe34b7edb1bb615d88 (diff)
downloadlinux-gpio-b4/fix-mips-nand.tar.gz
mtd: rawnand: gpio: Rename fileb4/fix-mips-nand
The implementation of the GPIO NAND controller is just "gpio" with the usecase for NAND implied from the folder nand/raw. This is not so great when the module gets the name "gpio.ko". Rename the implementation to nand-gpio.c so the module is named nand-gpio.ko which is more reasonable. We put "nand" first instead of "gpio" because the order is usually <subsystem>-<driver>.c, cf ls drivers/gpio/ Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--drivers/mtd/nand/raw/Makefile2
-rw-r--r--drivers/mtd/nand/raw/nand-gpio.c (renamed from drivers/mtd/nand/raw/gpio.c)0
2 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/Makefile b/drivers/mtd/nand/raw/Makefile
index 25120a4afadac2..f0e37733281277 100644
--- a/drivers/mtd/nand/raw/Makefile
+++ b/drivers/mtd/nand/raw/Makefile
@@ -18,7 +18,7 @@ obj-$(CONFIG_MTD_NAND_NANDSIM) += nandsim.o
obj-$(CONFIG_MTD_NAND_CS553X) += cs553x_nand.o
obj-$(CONFIG_MTD_NAND_NDFC) += ndfc.o
obj-$(CONFIG_MTD_NAND_ATMEL) += atmel/
-obj-$(CONFIG_MTD_NAND_GPIO) += gpio.o
+obj-$(CONFIG_MTD_NAND_GPIO) += nand-gpio.o
omap2_nand-objs := omap2.o
obj-$(CONFIG_MTD_NAND_OMAP2) += omap2_nand.o
obj-$(CONFIG_MTD_NAND_OMAP_BCH_BUILD) += omap_elm.o
diff --git a/drivers/mtd/nand/raw/gpio.c b/drivers/mtd/nand/raw/nand-gpio.c
index d5bd245b0c0ddb..d5bd245b0c0ddb 100644
--- a/drivers/mtd/nand/raw/gpio.c
+++ b/drivers/mtd/nand/raw/nand-gpio.c