2 * max8660.h -- Voltage regulation for the Maxim 8660/8661
4 * Copyright (C) 2009 Wolfram Sang, Pengutronix e.K.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 #ifndef __LINUX_REGULATOR_MAX8660_H
21 #define __LINUX_REGULATOR_MAX8660_H
23 #include <linux/regulator/machine.h>
35 * max8660_subdev_data - regulator subdev data
37 * @name: regulator name
38 * @platform_data: regulator init data
40 struct max8660_subdev_data
{
43 struct regulator_init_data
*platform_data
;
47 * max8660_platform_data - platform data for max8660
48 * @num_subdevs: number of regulators used
49 * @subdevs: pointer to regulators used
50 * @en34_is_high: if EN34 is driven high, regulators cannot be en-/disabled.
52 struct max8660_platform_data
{
54 struct max8660_subdev_data
*subdevs
;
55 unsigned en34_is_high
:1;