summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@nvidia.com>2012-04-12 13:54:30 -0700
committerSimone Willett <swillett@nvidia.com>2012-04-16 14:05:47 -0700
commitaa8a4c4cd922adc198f9e8138fd1d472ca366cd9 (patch)
tree2fb70e373f19141a09c006fda0870e6745143357 /include
parentc8147f8213ebd279816256f79adee23085dbf4b8 (diff)
regulator: gpio-switch: Fully remove
0cb53fae65 removed the sources for the gpio-switch-regulator, but missed the header file. There are no in-tree users of this header file. Change-Id: Ib497e97b9374025c18c7b20a2006d0c66e2b68a7 Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com> Reviewed-on: http://git-master/r/96258 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/regulator/gpio-switch-regulator.h69
1 files changed, 0 insertions, 69 deletions
diff --git a/include/linux/regulator/gpio-switch-regulator.h b/include/linux/regulator/gpio-switch-regulator.h
deleted file mode 100644
index 68776b93ef00..000000000000
--- a/include/linux/regulator/gpio-switch-regulator.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * Copyright (c) 2011, NVIDIA Corporation.
- *
- * 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.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#ifndef _GPIO_SWITCH_REGULATOR_H
-#define _GPIO_SWITCH_REGULATOR_H
-
-#include <linux/regulator/machine.h>
-
-/*
- * struct gpio_switch_regulator_subdev_data - Gpio switch regulator subdevice
- * data.
- *
- * Subdevice data to register a gpio regulator switch device driver.
- *
- * @regulator_name: The name of regulator.
- * @input_supply: Input supply name.
- * @id: The id of the switch.
- * @gpio_nr: Gpio nr which controls this switch.
- * @active_low: true if making gpio low makes voltage output enable.
- * @init_state: 1 if init_state should be active.
- * @voltages: Possible voltages to set at output. The values are in millivolt.
- * @n_voltages: Number of voltages.
- * @num_consumer_supplies: Number of cosumer supplies.
- * @consumer_supplies: List of consumer spllies.
- */
-struct gpio_switch_regulator_subdev_data {
- const char *regulator_name;
- const char *input_supply;
- int id;
- int gpio_nr;
- int active_low;
- int pin_group;
- int init_state;
- int *voltages;
- unsigned n_voltages;
- struct regulator_consumer_supply *consumer_supplies;
- int num_consumer_supplies;
- struct regulation_constraints constraints;
- int (*enable_rail)(struct gpio_switch_regulator_subdev_data *pdata);
- int (*disable_rail)(struct gpio_switch_regulator_subdev_data *pdata);
-
-};
-
-/**
- * gpio_switch_regulator_platform_data - platform data for gpio_switch_regulator
- * @num_subdevs: number of regulators used
- * @subdevs: pointer to regulators used
- */
-struct gpio_switch_regulator_platform_data {
- int num_subdevs;
- struct gpio_switch_regulator_subdev_data **subdevs;
-};
-
-#endif