mfd: palmas: shift the palmas_sleep_requestor_info structure definition to the header...
authorKeerthy <j-keerthy@ti.com>
Wed, 18 Jun 2014 09:58:57 +0000 (15:28 +0530)
committerMark Brown <broonie@linaro.org>
Mon, 23 Jun 2014 11:30:56 +0000 (12:30 +0100)
shift the palmas_sleep_requestor_info structure definition to the header file.

Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/mfd/palmas.c
include/linux/mfd/palmas.h

index 6e17861..c12759d 100644 (file)
 #include <linux/mfd/palmas.h>
 #include <linux/of_device.h>
 
-#define PALMAS_EXT_REQ (PALMAS_EXT_CONTROL_ENABLE1 |   \
-                       PALMAS_EXT_CONTROL_ENABLE2 |    \
-                       PALMAS_EXT_CONTROL_NSLEEP)
-
-struct palmas_sleep_requestor_info {
-       int id;
-       int reg_offset;
-       int bit_pos;
-};
-
 #define EXTERNAL_REQUESTOR(_id, _offset, _pos)         \
        [PALMAS_EXTERNAL_REQSTR_ID_##_id] = {           \
                .id = PALMAS_EXTERNAL_REQSTR_ID_##_id,  \
index c123666..0136e58 100644 (file)
@@ -88,6 +88,16 @@ struct palmas {
        u8 pwm_muxed;
 };
 
+#define PALMAS_EXT_REQ (PALMAS_EXT_CONTROL_ENABLE1 |   \
+                       PALMAS_EXT_CONTROL_ENABLE2 |    \
+                       PALMAS_EXT_CONTROL_NSLEEP)
+
+struct palmas_sleep_requestor_info {
+       int id;
+       int reg_offset;
+       int bit_pos;
+};
+
 struct regs_info {
        char    *name;
        char    *sname;