aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2014-06-18 05:58:57 -0400
committerMark Brown <broonie@linaro.org>2014-06-23 07:30:56 -0400
commit7ec70c73c9e93556fd19bb6bdfbbd089d9db438b (patch)
tree65f23542272f361576c694875239e5522018d641
parent9f057dc1d01383e6975e515ba8e661d2aeb6bdfc (diff)
mfd: palmas: shift the palmas_sleep_requestor_info structure definition to the header file
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>
-rw-r--r--drivers/mfd/palmas.c10
-rw-r--r--include/linux/mfd/palmas.h10
2 files changed, 10 insertions, 10 deletions
diff --git a/drivers/mfd/palmas.c b/drivers/mfd/palmas.c
index 6e1786187dd8..c12759d1bd7c 100644
--- a/drivers/mfd/palmas.c
+++ b/drivers/mfd/palmas.c
@@ -25,16 +25,6 @@
25#include <linux/mfd/palmas.h> 25#include <linux/mfd/palmas.h>
26#include <linux/of_device.h> 26#include <linux/of_device.h>
27 27
28#define PALMAS_EXT_REQ (PALMAS_EXT_CONTROL_ENABLE1 | \
29 PALMAS_EXT_CONTROL_ENABLE2 | \
30 PALMAS_EXT_CONTROL_NSLEEP)
31
32struct palmas_sleep_requestor_info {
33 int id;
34 int reg_offset;
35 int bit_pos;
36};
37
38#define EXTERNAL_REQUESTOR(_id, _offset, _pos) \ 28#define EXTERNAL_REQUESTOR(_id, _offset, _pos) \
39 [PALMAS_EXTERNAL_REQSTR_ID_##_id] = { \ 29 [PALMAS_EXTERNAL_REQSTR_ID_##_id] = { \
40 .id = PALMAS_EXTERNAL_REQSTR_ID_##_id, \ 30 .id = PALMAS_EXTERNAL_REQSTR_ID_##_id, \
diff --git a/include/linux/mfd/palmas.h b/include/linux/mfd/palmas.h
index c123666c70f7..0136e583f7f8 100644
--- a/include/linux/mfd/palmas.h
+++ b/include/linux/mfd/palmas.h
@@ -88,6 +88,16 @@ struct palmas {
88 u8 pwm_muxed; 88 u8 pwm_muxed;
89}; 89};
90 90
91#define PALMAS_EXT_REQ (PALMAS_EXT_CONTROL_ENABLE1 | \
92 PALMAS_EXT_CONTROL_ENABLE2 | \
93 PALMAS_EXT_CONTROL_NSLEEP)
94
95struct palmas_sleep_requestor_info {
96 int id;
97 int reg_offset;
98 int bit_pos;
99};
100
91struct regs_info { 101struct regs_info {
92 char *name; 102 char *name;
93 char *sname; 103 char *sname;