summaryrefslogtreecommitdiffstats
path: root/include/mfd/pfuze.h
blob: 8e021680ef64d4c632421e83e2bfe7250b8b9bd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef __INCLUDE_PFUZE_H
#define __INCLUDE_PFUZE_H

#include <regmap.h>

#ifdef CONFIG_REGULATOR_PFUZE
/*
 * For proper poweroff sequencing, users on imx6 needs to call
 * poweroff_handler_register_fn(imx6_pm_stby_poweroff);
 * inside of the callback, to ensure a proper poweroff sequence
 */
int pfuze_register_init_callback(void(*callback)(struct regmap *map));

#else

static inline int pfuze_register_init_callback(void(*callback)(struct regmap *map))
{
	return -ENODEV;
}
#endif

#endif /* __INCLUDE_PFUZE_H */