]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: Rename files for Maxim PMIC drivers
authorJavier Martinez Canillas <javier@osg.samsung.com>
Thu, 17 Mar 2016 17:54:54 +0000 (14:54 -0300)
committerMark Brown <broonie@kernel.org>
Mon, 28 Mar 2016 18:39:17 +0000 (19:39 +0100)
commitd4cc8bfb94cf9bff86d1505ff450ba7a8992d008
tree74dd39d51e96abe81fd6495f9059b9ee5a4a1930
parent3039f62d3fccb077513a4ffae4d1ef4609c1b724
regulator: Rename files for Maxim PMIC drivers

Most Maxim PMIC regulator drivers are for sub-devices of Multi-Function
Devices with drivers under drivers/mfd. But for many of these, the same
object file name was used for both the MFD and the regulator drivers.

Having 2 different drivers with the same name causes a lot of confusion
to Kbuild, specially if these are built as module since only one module
will be installed and also exported symbols will be undefined due being
overwritten by the other module during modpost.

For example, it fixes the following issue when both drivers are module:

$ make M=drivers/regulator/
  ...
  CC [M]  drivers/regulator//max14577.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: "maxim_charger_calc_reg_current" [drivers/regulator//max14577.ko] undefined!
WARNING: "maxim_charger_currents" [drivers/regulator//max14577.ko] undefined!

Reported-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
MAINTAINERS
drivers/regulator/Makefile
drivers/regulator/max14577-regulator.c [new file with mode: 0644]
drivers/regulator/max14577.c [deleted file]
drivers/regulator/max77693-regulator.c [new file with mode: 0644]
drivers/regulator/max77693.c [deleted file]
drivers/regulator/max8997-regulator.c [new file with mode: 0644]
drivers/regulator/max8997.c [deleted file]