]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
regulator: Rename files for max77686 and max77802 drivers
authorJavier Martinez Canillas <javier@osg.samsung.com>
Fri, 12 Feb 2016 04:14:23 +0000 (01:14 -0300)
committerMark Brown <broonie@kernel.org>
Fri, 12 Feb 2016 12:15:51 +0000 (12:15 +0000)
The max77686 and max77802 regulator drivers are for sub-devices of a MFD
driver for some PMIC blocks. But the same object file name (max77686.o)
was used for both the common MFD driver and the max77686 regulator one.

This confuses kbuild if both drivers are built as module causing the MFD
driver to not be copied when installing the modules.

Also, max77{686,802} are a quite generic name for MFD subdevices drivers
so it is better to rename them to max77{686,802}-regulator like it's the
case for most regulator drivers.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
MAINTAINERS
drivers/regulator/Makefile
drivers/regulator/max77686-regulator.c [moved from drivers/regulator/max77686.c with 100% similarity]
drivers/regulator/max77802-regulator.c [moved from drivers/regulator/max77802.c with 100% similarity]

index 30aca4aa5467b53d6a171a27b57a4357fa09127b..1d88035630cca9af98fa90b65324f553b8c3473b 100644 (file)
@@ -6903,7 +6903,7 @@ MAXIM MAX77802 MULTIFUNCTION PMIC DEVICE DRIVERS
 M:     Javier Martinez Canillas <javier@osg.samsung.com>
 L:     linux-kernel@vger.kernel.org
 S:     Supported
-F:     drivers/*/*max77802.c
+F:     drivers/*/*max77802*.c
 F:     Documentation/devicetree/bindings/*/*max77802.txt
 F:     include/dt-bindings/*/*max77802.h
 
index 980b1943fa8153dd0c7cb1d286c5f5a23aacdbf4..a8c07a079996c4135b68b6f802bb83797475a26e 100644 (file)
@@ -54,9 +54,9 @@ obj-$(CONFIG_REGULATOR_MAX8952) += max8952.o
 obj-$(CONFIG_REGULATOR_MAX8973) += max8973-regulator.o
 obj-$(CONFIG_REGULATOR_MAX8997) += max8997.o
 obj-$(CONFIG_REGULATOR_MAX8998) += max8998.o
-obj-$(CONFIG_REGULATOR_MAX77686) += max77686.o
+obj-$(CONFIG_REGULATOR_MAX77686) += max77686-regulator.o
 obj-$(CONFIG_REGULATOR_MAX77693) += max77693.o
-obj-$(CONFIG_REGULATOR_MAX77802) += max77802.o
+obj-$(CONFIG_REGULATOR_MAX77802) += max77802-regulator.o
 obj-$(CONFIG_REGULATOR_MC13783) += mc13783-regulator.o
 obj-$(CONFIG_REGULATOR_MC13892) += mc13892-regulator.o
 obj-$(CONFIG_REGULATOR_MC13XXX_CORE) +=  mc13xxx-regulator-core.o