]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mfd: Rename s5m file and directories to samsung
authorSangbeom Kim <sbkim73@samsung.com>
Wed, 11 Jul 2012 12:06:40 +0000 (21:06 +0900)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 16 Jul 2012 10:57:35 +0000 (12:57 +0200)
Previously, Samsung PMIC naming rule start with prefix of s5m.
But Naming rule is changed.
From now on, Prefix will be changed to s2m.
So, To support pmic series of s5m and s2m, change mfd file and directory name.

Signed-off-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/Kconfig
drivers/mfd/Makefile
drivers/mfd/sec-core.c [moved from drivers/mfd/s5m-core.c with 97% similarity]
drivers/mfd/sec-irq.c [moved from drivers/mfd/s5m-irq.c with 99% similarity]
drivers/regulator/Kconfig
drivers/regulator/s5m8767.c
include/linux/mfd/samsung/s5m-core.h [moved from include/linux/mfd/s5m87xx/s5m-core.h with 99% similarity]
include/linux/mfd/samsung/s5m-pmic.h [moved from include/linux/mfd/s5m87xx/s5m-pmic.h with 100% similarity]
include/linux/mfd/samsung/s5m-rtc.h [moved from include/linux/mfd/s5m87xx/s5m-rtc.h with 100% similarity]

index 9c3ab2ab7dc7ff00c5a747ed94c6257006548204..bad68f82772ac2182717b429f4143328072b9228 100644 (file)
@@ -508,13 +508,13 @@ config MFD_MAX8998
          additional drivers must be enabled in order to use the functionality
          of the device.
 
-config MFD_S5M_CORE
-       bool "SAMSUNG S5M Series Support"
+config MFD_SEC_CORE
+       bool "SAMSUNG Electronics PMIC Series Support"
        depends on I2C=y && GENERIC_HARDIRQS
        select MFD_CORE
        select REGMAP_I2C
        help
-        Support for the Samsung Electronics S5M MFD series.
+        Support for the Samsung Electronics MFD series.
         This driver provides common support for accessing the device,
         additional drivers must be enabled in order to use the functionality
         of the device
index 09674a99eb60df5ca674fc017e14aded2c094235..9c9727fe3f09a9bf8d1d452bc402d392410be3ea 100644 (file)
@@ -126,6 +126,6 @@ obj-$(CONFIG_MFD_AAT2870_CORE)      += aat2870-core.o
 obj-$(CONFIG_MFD_INTEL_MSIC)   += intel_msic.o
 obj-$(CONFIG_MFD_PALMAS)       += palmas.o
 obj-$(CONFIG_MFD_RC5T583)      += rc5t583.o rc5t583-irq.o
-obj-$(CONFIG_MFD_S5M_CORE)     += s5m-core.o s5m-irq.o
+obj-$(CONFIG_MFD_SEC_CORE)     += sec-core.o sec-irq.o
 obj-$(CONFIG_MFD_ANATOP)       += anatop-mfd.o
 obj-$(CONFIG_MFD_LM3533)       += lm3533-core.o lm3533-ctrlbank.o
similarity index 97%
rename from drivers/mfd/s5m-core.c
rename to drivers/mfd/sec-core.c
index dd170307e60e7a2642c825df88f28fdd7d568d51..b09036022bca653e3c591fe9b36025a5b129cec3 100644 (file)
@@ -21,9 +21,9 @@
 #include <linux/pm_runtime.h>
 #include <linux/mutex.h>
 #include <linux/mfd/core.h>
-#include <linux/mfd/s5m87xx/s5m-core.h>
-#include <linux/mfd/s5m87xx/s5m-pmic.h>
-#include <linux/mfd/s5m87xx/s5m-rtc.h>
+#include <linux/mfd/samsung/s5m-core.h>
+#include <linux/mfd/samsung/s5m-pmic.h>
+#include <linux/mfd/samsung/s5m-rtc.h>
 #include <linux/regmap.h>
 
 static struct mfd_cell s5m8751_devs[] = {
similarity index 99%
rename from drivers/mfd/s5m-irq.c
rename to drivers/mfd/sec-irq.c
index 0236676085cf096f6c4e0091ac3803d4f8fc1f3f..5e90cc1f0fd73d0da106ad9e8e7dd25d01bd20ab 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/device.h>
 #include <linux/interrupt.h>
 #include <linux/irq.h>
-#include <linux/mfd/s5m87xx/s5m-core.h>
+#include <linux/mfd/samsung/s5m-core.h>
 
 struct s5m_irq_data {
        int reg;
@@ -333,7 +333,7 @@ static irqreturn_t s5m8763_irq_thread(int irq, void *data)
 
 int s5m_irq_resume(struct s5m87xx_dev *s5m87xx)
 {
-       if (s5m87xx->irq && s5m87xx->irq_base){
+       if (s5m87xx->irq && s5m87xx->irq_base) {
                switch (s5m87xx->device_type) {
                case S5M8763X:
                        s5m8763_irq_thread(s5m87xx->irq_base, s5m87xx);
index c86b8864e411feceb66924be2b8cc4170c0db74c..12c0c0ee989d5b47e599ee94b0a4fcc0c046217f 100644 (file)
@@ -235,7 +235,7 @@ config REGULATOR_RC5T583
 
 config REGULATOR_S5M8767
        tristate "Samsung S5M8767A voltage regulator"
-       depends on MFD_S5M_CORE
+       depends on MFD_SEC_CORE
        help
         This driver supports a Samsung S5M8767A voltage output regulator
         via I2C bus. S5M8767A have 9 Bucks and 28 LDOs output and
index 9caadb4821786308aa624e9ef03cd7408dc2083f..a77895889f3ac5c0fbed3dac6920283c2dc9961e 100644 (file)
@@ -19,8 +19,8 @@
 #include <linux/platform_device.h>
 #include <linux/regulator/driver.h>
 #include <linux/regulator/machine.h>
-#include <linux/mfd/s5m87xx/s5m-core.h>
-#include <linux/mfd/s5m87xx/s5m-pmic.h>
+#include <linux/mfd/samsung/s5m-core.h>
+#include <linux/mfd/samsung/s5m-pmic.h>
 
 struct s5m8767_info {
        struct device *dev;
similarity index 99%
rename from include/linux/mfd/s5m87xx/s5m-core.h
rename to include/linux/mfd/samsung/s5m-core.h
index 21603b42f22fb150f73a5be185e6c1d615de6329..7332ff608c85df0cf46b2321fa8061df67e934ca 100644 (file)
@@ -340,7 +340,7 @@ struct s5m_platform_data {
        int                             num_regulators;
 
        int                             irq_base;
-       int                             (*cfg_pmic_irq)(void);
+       int                             (*cfg_pmic_irq)(void);
 
        int                             ono;
        bool                            wakeup;