blob: 399742f7e2ac9954a49f5730dcfe83941b73b0e3 [file] [log] [blame]
/* 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