summaryrefslogtreecommitdiff
path: root/include/linux/regulator/onsemi-ncp6335d.h
blob: 399742f7e2ac9954a49f5730dcfe83941b73b0e3 (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
25
26
27
28
29
30
31
32
33
34
35
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#ifndef __NCP6335D_H__
#define __NCP6335D_H__

enum {
	NCP6335D_VSEL0,
	NCP6335D_VSEL1,
};

struct ncp6335d_platform_data {
	struct regulator_init_data *init_data;
	int default_vsel;
	int slew_rate_ns;
	int discharge_enable;
	bool sleep_enable;
};

#ifdef CONFIG_REGULATOR_ONSEMI_NCP6335D
int __init ncp6335d_regulator_init(void);
#else
static inline int __init ncp6335d_regulator_init(void) { return 0; }
#endif

#endif