[PATCH] i2c: mux: rename files to not have superfluous prefixes

From: Peter Rosin
Date: Fri Aug 04 2017 - 05:08:02 EST


Keep the module names intact using extra lines in the Makefile.

Signed-off-by: Peter Rosin <peda@xxxxxxxxxx>
---
MAINTAINERS | 8 ++++----
drivers/i2c/muxes/Makefile | 13 +++++++++++++
.../{i2c-arb-gpio-challenge.c => arb-gpio-challenge.c} | 0
drivers/i2c/muxes/{i2c-demux-pinctrl.c => demux-pinctrl.c} | 0
drivers/i2c/muxes/{i2c-mux-gpio.c => gpio.c} | 0
drivers/i2c/muxes/{i2c-mux-gpmux.c => gpmux.c} | 0
drivers/i2c/muxes/{i2c-mux-ltc4306.c => ltc4306.c} | 0
drivers/i2c/muxes/{i2c-mux-mlxcpld.c => mlxcpld.c} | 0
drivers/i2c/muxes/{i2c-mux-pca9541.c => pca9541.c} | 0
drivers/i2c/muxes/{i2c-mux-pca954x.c => pca954x.c} | 0
drivers/i2c/muxes/{i2c-mux-pinctrl.c => pinctrl.c} | 0
drivers/i2c/muxes/{i2c-mux-reg.c => reg.c} | 0
12 files changed, 17 insertions(+), 4 deletions(-)
rename drivers/i2c/muxes/{i2c-arb-gpio-challenge.c => arb-gpio-challenge.c} (100%)
rename drivers/i2c/muxes/{i2c-demux-pinctrl.c => demux-pinctrl.c} (100%)
rename drivers/i2c/muxes/{i2c-mux-gpio.c => gpio.c} (100%)
rename drivers/i2c/muxes/{i2c-mux-gpmux.c => gpmux.c} (100%)
rename drivers/i2c/muxes/{i2c-mux-ltc4306.c => ltc4306.c} (100%)
rename drivers/i2c/muxes/{i2c-mux-mlxcpld.c => mlxcpld.c} (100%)
rename drivers/i2c/muxes/{i2c-mux-pca9541.c => pca9541.c} (100%)
rename drivers/i2c/muxes/{i2c-mux-pca954x.c => pca954x.c} (100%)
rename drivers/i2c/muxes/{i2c-mux-pinctrl.c => pinctrl.c} (100%)
rename drivers/i2c/muxes/{i2c-mux-reg.c => reg.c} (100%)

Hi Wolfram!

In the light of the rant from Linus the other week [1], I thought this
might be a good idea?

Cheers,
peda

[1] https://lkml.org/lkml/2017/7/12/430

diff --git a/MAINTAINERS b/MAINTAINERS
index 205d3977ac46..46356c87f0c9 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -5687,7 +5687,7 @@ GENERIC GPIO I2C MULTIPLEXER DRIVER
M: Peter Korsgaard <peter.korsgaard@xxxxxxxxx>
L: linux-i2c@xxxxxxxxxxxxxxx
S: Supported
-F: drivers/i2c/muxes/i2c-mux-gpio.c
+F: drivers/i2c/muxes/gpio.c
F: include/linux/i2c-mux-gpio.h
F: Documentation/i2c/muxes/i2c-mux-gpio

@@ -7998,7 +7998,7 @@ M: Michael Hennerich <michael.hennerich@xxxxxxxxxx>
W: http://ez.analog.com/community/linux-device-drivers
L: linux-i2c@xxxxxxxxxxxxxxx
S: Supported
-F: drivers/i2c/muxes/i2c-mux-ltc4306.c
+F: drivers/i2c/muxes/ltc4306.c
F: Documentation/devicetree/bindings/i2c/i2c-mux-ltc4306.txt

LTP (Linux Test Project)
@@ -8558,7 +8558,7 @@ M: Michael Shych <michaelsh@xxxxxxxxxxxx>
L: linux-i2c@xxxxxxxxxxxxxxx
S: Supported
F: drivers/i2c/busses/i2c-mlxcpld.c
-F: drivers/i2c/muxes/i2c-mux-mlxcpld.c
+F: drivers/i2c/muxes/mlxcpld.c
F: Documentation/i2c/busses/i2c-mlxcpld

MELLANOX MLXCPLD LED DRIVER
@@ -10018,7 +10018,7 @@ PCA9541 I2C BUS MASTER SELECTOR DRIVER
M: Guenter Roeck <linux@xxxxxxxxxxxx>
L: linux-i2c@xxxxxxxxxxxxxxx
S: Maintained
-F: drivers/i2c/muxes/i2c-mux-pca9541.c
+F: drivers/i2c/muxes/pca9541.c

PCDP - PRIMARY CONSOLE AND DEBUG PORT
M: Khalid Aziz <khalid@xxxxxxxxxxxxxx>
diff --git a/drivers/i2c/muxes/Makefile b/drivers/i2c/muxes/Makefile
index 4a67d3199877..b9f7a78d7604 100644
--- a/drivers/i2c/muxes/Makefile
+++ b/drivers/i2c/muxes/Makefile
@@ -1,6 +1,19 @@
#
# Makefile for multiplexer I2C chip drivers.

+i2c-arb-gpio-challenge-objs := arb-gpio-challenge.o
+
+i2c-demux-pinctrl-objs := demux-pinctrl.o
+
+i2c-mux-gpio-objs := gpio.o
+i2c-mux-gpmux-objs := gpmux.o
+i2c-mux-ltc4306-objs := ltc4306.o
+i2c-mux-mlxcpld-objs := mlxcpld.o
+i2c-mux-pca9541-objs := pca9541.o
+i2c-mux-pca954x-objs := pca954x.o
+i2c-mux-pinctrl-objs := pinctrl.o
+i2c-mux-reg-objs := reg.o
+
obj-$(CONFIG_I2C_ARB_GPIO_CHALLENGE) += i2c-arb-gpio-challenge.o

obj-$(CONFIG_I2C_DEMUX_PINCTRL) += i2c-demux-pinctrl.o
diff --git a/drivers/i2c/muxes/i2c-arb-gpio-challenge.c b/drivers/i2c/muxes/arb-gpio-challenge.c
similarity index 100%
rename from drivers/i2c/muxes/i2c-arb-gpio-challenge.c
rename to drivers/i2c/muxes/arb-gpio-challenge.c
diff --git a/drivers/i2c/muxes/i2c-demux-pinctrl.c b/drivers/i2c/muxes/demux-pinctrl.c
similarity index 100%
rename from drivers/i2c/muxes/i2c-demux-pinctrl.c
rename to drivers/i2c/muxes/demux-pinctrl.c
diff --git a/drivers/i2c/muxes/i2c-mux-gpio.c b/drivers/i2c/muxes/gpio.c
similarity index 100%
rename from drivers/i2c/muxes/i2c-mux-gpio.c
rename to drivers/i2c/muxes/gpio.c
diff --git a/drivers/i2c/muxes/i2c-mux-gpmux.c b/drivers/i2c/muxes/gpmux.c
similarity index 100%
rename from drivers/i2c/muxes/i2c-mux-gpmux.c
rename to drivers/i2c/muxes/gpmux.c
diff --git a/drivers/i2c/muxes/i2c-mux-ltc4306.c b/drivers/i2c/muxes/ltc4306.c
similarity index 100%
rename from drivers/i2c/muxes/i2c-mux-ltc4306.c
rename to drivers/i2c/muxes/ltc4306.c
diff --git a/drivers/i2c/muxes/i2c-mux-mlxcpld.c b/drivers/i2c/muxes/mlxcpld.c
similarity index 100%
rename from drivers/i2c/muxes/i2c-mux-mlxcpld.c
rename to drivers/i2c/muxes/mlxcpld.c
diff --git a/drivers/i2c/muxes/i2c-mux-pca9541.c b/drivers/i2c/muxes/pca9541.c
similarity index 100%
rename from drivers/i2c/muxes/i2c-mux-pca9541.c
rename to drivers/i2c/muxes/pca9541.c
diff --git a/drivers/i2c/muxes/i2c-mux-pca954x.c b/drivers/i2c/muxes/pca954x.c
similarity index 100%
rename from drivers/i2c/muxes/i2c-mux-pca954x.c
rename to drivers/i2c/muxes/pca954x.c
diff --git a/drivers/i2c/muxes/i2c-mux-pinctrl.c b/drivers/i2c/muxes/pinctrl.c
similarity index 100%
rename from drivers/i2c/muxes/i2c-mux-pinctrl.c
rename to drivers/i2c/muxes/pinctrl.c
diff --git a/drivers/i2c/muxes/i2c-mux-reg.c b/drivers/i2c/muxes/reg.c
similarity index 100%
rename from drivers/i2c/muxes/i2c-mux-reg.c
rename to drivers/i2c/muxes/reg.c
--
2.11.0