Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312607
b: refs/heads/master
c: a2a8222
h: refs/heads/master
i:
  312605: 7df8241
  312603: 06067c9
  312599: 6211d8d
  312591: 3c28dd8
  312575: 899f2c1
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Jul 4, 2012
1 parent 92d048c commit 3ee5bf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 94f48ab32b5a875fcf2f62e72de8f666136d98ba
refs/heads/master: a2a8222be8385818ade54554a50f7904ed0e506f
12 changes: 1 addition & 11 deletions trunk/drivers/regulator/gpio-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ struct gpio_regulator_data {
int enable_gpio;
bool enable_high;
bool is_enabled;
unsigned startup_delay;

struct gpio *gpios;
int nr_gpios;
Expand Down Expand Up @@ -81,13 +80,6 @@ static int gpio_regulator_disable(struct regulator_dev *dev)
return 0;
}

static int gpio_regulator_enable_time(struct regulator_dev *dev)
{
struct gpio_regulator_data *data = rdev_get_drvdata(dev);

return data->startup_delay;
}

static int gpio_regulator_get_value(struct regulator_dev *dev)
{
struct gpio_regulator_data *data = rdev_get_drvdata(dev);
Expand Down Expand Up @@ -156,7 +148,6 @@ static struct regulator_ops gpio_regulator_voltage_ops = {
.is_enabled = gpio_regulator_is_enabled,
.enable = gpio_regulator_enable,
.disable = gpio_regulator_disable,
.enable_time = gpio_regulator_enable_time,
.get_voltage = gpio_regulator_get_value,
.set_voltage = gpio_regulator_set_voltage,
.list_voltage = gpio_regulator_list_voltage,
Expand All @@ -166,7 +157,6 @@ static struct regulator_ops gpio_regulator_current_ops = {
.is_enabled = gpio_regulator_is_enabled,
.enable = gpio_regulator_enable,
.disable = gpio_regulator_disable,
.enable_time = gpio_regulator_enable_time,
.get_current_limit = gpio_regulator_get_value,
.set_current_limit = gpio_regulator_set_current_limit,
};
Expand Down Expand Up @@ -213,6 +203,7 @@ static int __devinit gpio_regulator_probe(struct platform_device *pdev)
drvdata->nr_states = config->nr_states;

drvdata->desc.owner = THIS_MODULE;
drvdata->desc.enable_time = config->startup_delay;

/* handle regulator type*/
switch (config->type) {
Expand All @@ -233,7 +224,6 @@ static int __devinit gpio_regulator_probe(struct platform_device *pdev)
}

drvdata->enable_gpio = config->enable_gpio;
drvdata->startup_delay = config->startup_delay;

if (gpio_is_valid(config->enable_gpio)) {
drvdata->enable_high = config->enable_high;
Expand Down

0 comments on commit 3ee5bf6

Please sign in to comment.