summaryrefslogtreecommitdiffstats
path: root/include/mfd/pfuze.h
blob: 4fb3863a723e85673d2e3cac1be35fd33e4d442f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* SPDX-License-Identifier: GPL-2.0-only */

#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 */