1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * max8660.h -- Voltage regulation for the Maxim 8660/8661
5 * Copyright (C) 2009 Wolfram Sang, Pengutronix e.K.
8 #ifndef __LINUX_REGULATOR_MAX8660_H
9 #define __LINUX_REGULATOR_MAX8660_H
11 #include <linux/regulator/machine.h>
23 * max8660_subdev_data - regulator subdev data
25 * @name: regulator name
26 * @platform_data: regulator init data
28 struct max8660_subdev_data {
31 struct regulator_init_data *platform_data;
35 * max8660_platform_data - platform data for max8660
36 * @num_subdevs: number of regulators used
37 * @subdevs: pointer to regulators used
38 * @en34_is_high: if EN34 is driven high, regulators cannot be en-/disabled.
40 struct max8660_platform_data {
42 struct max8660_subdev_data *subdevs;
43 unsigned en34_is_high:1;