regulator: core: use regulator_ena_pin member

The regulator_dev has regulator_enable_gpio structure.
 'ena_gpio' and 'ena_gpio_invert' were moved to in regulator_enable_gpio.

  regulator_dev   --->   regulator_enable_gpio
  .ena_gpio              .gpio
  .ena_gpio_invert       .ena_gpio_invert

  Pointer, 'ena_pin' is used for checking valid enable GPIO pin.

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Reviewed-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
Kim, Milo
2013-02-18 06:50:55 +00:00
committed by Mark Brown
parent 967cfb18c0
commit 7b74d14924
2 changed files with 3 additions and 5 deletions

View File

@@ -302,8 +302,6 @@ struct regulator_dev {
struct dentry *debugfs;
struct regulator_enable_gpio *ena_pin;
int ena_gpio;
unsigned int ena_gpio_invert:1;
unsigned int ena_gpio_state:1;
};