Skip to content

Commit

Permalink
mfd: palmas: shift the palmas_sleep_requestor_info structure definiti…
Browse files Browse the repository at this point in the history
…on 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>
  • Loading branch information
Keerthy authored and Mark Brown committed Jun 23, 2014
1 parent 9f057dc commit 7ec70c7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 0 additions & 10 deletions drivers/mfd/palmas.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,6 @@
#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, \
Expand Down
10 changes: 10 additions & 0 deletions include/linux/mfd/palmas.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7ec70c7

Please sign in to comment.