Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ec70c73 authored by Keerthy's avatar Keerthy Committed by Mark Brown
Browse files

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: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarKeerthy <j-keerthy@ti.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 9f057dc1
Loading
Loading
Loading
Loading
+0 −10
Original line number Original line Diff line number Diff line
@@ -25,16 +25,6 @@
#include <linux/mfd/palmas.h>
#include <linux/mfd/palmas.h>
#include <linux/of_device.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)		\
#define EXTERNAL_REQUESTOR(_id, _offset, _pos)		\
	[PALMAS_EXTERNAL_REQSTR_ID_##_id] = {		\
	[PALMAS_EXTERNAL_REQSTR_ID_##_id] = {		\
		.id = PALMAS_EXTERNAL_REQSTR_ID_##_id,	\
		.id = PALMAS_EXTERNAL_REQSTR_ID_##_id,	\
+10 −0
Original line number Original line Diff line number Diff line
@@ -88,6 +88,16 @@ struct palmas {
	u8 pwm_muxed;
	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 {
struct regs_info {
	char	*name;
	char	*name;
	char	*sname;
	char	*sname;