Merge branch 'for_3.4/pm/smps-regulator' of git://git.kernel.org/pub/scm/linux/kernel... omap-pm-regulator-for-v3.5
authorTony Lindgren <tony@atomide.com>
Mon, 30 Apr 2012 17:08:29 +0000 (10:08 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 30 Apr 2012 17:08:29 +0000 (10:08 -0700)
Conflicts:
arch/arm/mach-omap2/twl-common.c

1  2 
arch/arm/mach-omap2/twl-common.c

@@@ -37,16 -38,18 +38,28 @@@ static struct i2c_board_info __initdat
        .flags          = I2C_CLIENT_WAKE,
  };
  
 +static struct i2c_board_info __initdata omap4_i2c1_board_info[] = {
 +      {
 +              .addr           = 0x48,
 +              .flags          = I2C_CLIENT_WAKE,
 +      },
 +      {
 +              I2C_BOARD_INFO("twl6040", 0x4b),
 +      },
 +};
 +
+ static int twl_set_voltage(void *data, int target_uV)
+ {
+       struct voltagedomain *voltdm = (struct voltagedomain *)data;
+       return voltdm_scale(voltdm, target_uV);
+ }
+ static int twl_get_voltage(void *data)
+ {
+       struct voltagedomain *voltdm = (struct voltagedomain *)data;
+       return voltdm_get_voltage(voltdm);
+ }
  void __init omap_pmic_init(int bus, u32 clkrate,
                           const char *pmic_type, int pmic_irq,
                           struct twl4030_platform_data *pmic_data)