/*
 * max8698.h  --  Voltage regulation for the Maxim 8698
 *
 * Copyright (C) 2009 Samsung Electrnoics
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * 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.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef REGULATOR_MAX8698
#define REGULATOR_MAX8698

#include <linux/regulator/machine.h>

enum {
	MAX8698_LDO1 = 1,
	MAX8698_LDO2,
	MAX8698_LDO3,
	MAX8698_LDO4,
	MAX8698_LDO5,
	MAX8698_LDO6,
	MAX8698_LDO7,
	MAX8698_LDO8,
	MAX8698_LDO9,
	MAX8698_DCDC1,
	MAX8698_DCDC2,
	MAX8698_DCDC3,
};

/**
 * max8698_subdev_data - regulator data
 * @id: regulator Id
 * @initdata: regulator init data (contraints, supplies, ...)
 */
/* old structure
struct max8698_subdev_data {
	int				id;
	struct regulator_init_data	*initdata;
};*/
struct max8698_subdev_data {
	int		id;
//        const char      *name;
        void            *platform_data;
};

/**
 * max8698_platform_data - platform data for max8698
 * @num_regulators: number of regultors used
 * @regulators: regulator used
 */
struct max8698_platform_data {
	int num_regulators;
	struct max8698_subdev_data *regulators;
};

#endif
