Merge remote-tracking branches 'regulator/topic/core', 'regulator/topic/bypass',...
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 28 Sep 2012 13:45:07 +0000 (14:45 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 28 Sep 2012 13:45:07 +0000 (14:45 +0100)
1  2  3  4  5  6 
drivers/mfd/tps6586x.c
drivers/regulator/Kconfig
drivers/regulator/arizona-ldo1.c
drivers/regulator/core.c
drivers/regulator/tps6586x-regulator.c
drivers/regulator/wm831x-ldo.c
include/linux/regulator/consumer.h
include/linux/regulator/driver.h

Simple merge
Simple merge
index c8f95c07adb63aea4d174c9eab659ba11bcb5dea,c8f95c07adb63aea4d174c9eab659ba11bcb5dea,80e012f14160e1b1cceb08a5bd5615a3748b0779,c8f95c07adb63aea4d174c9eab659ba11bcb5dea,128fb949fee59a06ac17a53cbba4d4dc04abea5e,c8f95c07adb63aea4d174c9eab659ba11bcb5dea..d184aa35abcb45a91795aeed9de35ad8f7d1a75a
@@@@@@@ -49,9 -49,9 -51,11 -49,9 -49,9 -49,9 +51,11 @@@@@@@ static const struct regulator_desc ariz
      
        .vsel_reg = ARIZONA_LDO1_CONTROL_1,
        .vsel_mask = ARIZONA_LDO1_VSEL_MASK,
++ +++  .bypass_reg = ARIZONA_LDO1_CONTROL_1,
++ +++  .bypass_mask = ARIZONA_LDO1_BYPASS,
        .min_uV = 900000,
        .uV_step = 50000,
---- -  .n_voltages = 7,
++++ +  .n_voltages = 6,
      
        .owner = THIS_MODULE,
      };
Simple merge
index 19241fc300505f46ff0179470a734238cb7c76fd,e6da90ab5153dedd64ebd96137776f652af7d152,19241fc300505f46ff0179470a734238cb7c76fd,e6da90ab5153dedd64ebd96137776f652af7d152,c80f0ac05e2f6db6eebe82808c1031c2a713961a,82125269b667ff3be953967debfb2fedeecc9b63..ce1e7cb8d513f13a8463a84b2de39d1a61cb180c
@@@@@@@ -100,68 -100,68 -100,68 -100,68 -97,16 -100,71 +97,19 @@@@@@@ static int tps6586x_set_voltage_sel(str
        return ret;
      }
      
---- -static int tps6586x_get_voltage_sel(struct regulator_dev *rdev)
---- -{
---- -  struct tps6586x_regulator *ri = rdev_get_drvdata(rdev);
---- -  struct device *parent = to_tps6586x_dev(rdev);
---- -  uint8_t val, mask;
---- -  int ret;
---- -
---- -  ret = tps6586x_read(parent, ri->volt_reg, &val);
---- -  if (ret)
---- -          return ret;
---- -
---- -  mask = ((1 << ri->volt_nbits) - 1) << ri->volt_shift;
---- -  val = (val & mask) >> ri->volt_shift;
---- -
---- -  if (val >= ri->desc.n_voltages)
---- -          BUG();
---- -
---- -  return val;
---- -}
---- -
---- -static int tps6586x_regulator_enable(struct regulator_dev *rdev)
---- -{
---- -  struct tps6586x_regulator *ri = rdev_get_drvdata(rdev);
---- -  struct device *parent = to_tps6586x_dev(rdev);
---- -
---- -  return tps6586x_set_bits(parent, ri->enable_reg[0],
---- -                           1 << ri->enable_bit[0]);
---- -}
---- -
---- -static int tps6586x_regulator_disable(struct regulator_dev *rdev)
---- -{
---- -  struct tps6586x_regulator *ri = rdev_get_drvdata(rdev);
---- -  struct device *parent = to_tps6586x_dev(rdev);
---- -
---- -  return tps6586x_clr_bits(parent, ri->enable_reg[0],
---- -                           1 << ri->enable_bit[0]);
---- -}
---- -
---- -static int tps6586x_regulator_is_enabled(struct regulator_dev *rdev)
---- -{
---- -  struct tps6586x_regulator *ri = rdev_get_drvdata(rdev);
---- -  struct device *parent = to_tps6586x_dev(rdev);
---- -  uint8_t reg_val;
---- -  int ret;
---- -
---- -  ret = tps6586x_read(parent, ri->enable_reg[0], &reg_val);
---- -  if (ret)
---- -          return ret;
---- -
---- -  return !!(reg_val & (1 << ri->enable_bit[0]));
---- -}
---- -
      static struct regulator_ops tps6586x_regulator_ops = {
        .list_voltage = regulator_list_voltage_table,
---- -  .get_voltage_sel = tps6586x_get_voltage_sel,
++++ +  .get_voltage_sel = regulator_get_voltage_sel_regmap,
        .set_voltage_sel = tps6586x_set_voltage_sel,
      
---- -  .is_enabled = tps6586x_regulator_is_enabled,
---- -  .enable = tps6586x_regulator_enable,
---- -  .disable = tps6586x_regulator_disable,
++++ +  .is_enabled = regulator_is_enabled_regmap,
++++ +  .enable = regulator_enable_regmap,
++++ +  .disable = regulator_disable_regmap,
++++  };
++++  
+++++ static struct regulator_ops tps6586x_sys_regulator_ops = {
    + };
    + 
      static const unsigned int tps6586x_ldo0_voltages[] = {
        1200000, 1500000, 1800000, 2500000, 2700000, 2850000, 3100000, 3300000,
      };
@@@@@@@ -238,9 -238,9 -238,9 -238,9 -184,9 -254,9 +200,9 @@@@@@@ static struct tps6586x_regulator tps658
        TPS6586X_LDO(LDO_7, "vinldo678", ldo, SUPPLYV3, 3, 3, ENC, 5, END, 5),
        TPS6586X_LDO(LDO_8, "vinldo678", ldo, SUPPLYV2, 5, 3, ENC, 6, END, 6),
        TPS6586X_LDO(LDO_9, "vinldo9", ldo, SUPPLYV6, 3, 3, ENE, 7, ENE, 7),
-----   TPS6586X_LDO(LDO_RTC, NULL, ldo, SUPPLYV4, 3, 3, V4, 7, V4, 7),
+++++   TPS6586X_LDO(LDO_RTC, "REG-SYS", ldo, SUPPLYV4, 3, 3, V4, 7, V4, 7),
        TPS6586X_LDO(LDO_1, "vinldo01", dvm, SUPPLYV1, 0, 5, ENC, 1, END, 1),
 - -    TPS6586X_LDO(SM_2, "sm2", sm2, SUPPLYV2, 0, 5, ENC, 7, END, 7),
 + +    TPS6586X_LDO(SM_2, "vin-sm2", sm2, SUPPLYV2, 0, 5, ENC, 7, END, 7),
      
        TPS6586X_DVM(LDO_2, "vinldo23", dvm, LDO2BV1, 0, 5, ENA, 3,
                                        ENB, 3, VCC2, 6),
Simple merge
Simple merge
Simple merge