diff options
author | Balaji Rao <balajirrao@gmail.com> | 2008-11-20 19:46:49 +0000 |
---|---|---|
committer | Andy Green <agreen@pads.home.warmcat.com> | 2008-11-20 19:46:49 +0000 |
commit | fa62cc7d002b4422d44f453a08d9cd7c1f192600 (patch) | |
tree | c08fa854a795279c98e2b4d7f5fa484975345295 /arch/arm/plat-s3c24xx/neo1973_pm_bt.c | |
parent | f3e9a706b03391c57b132b7a31f1f4cea4376bc2 (diff) |
eliminate_pcf50633_global.patch
Eliminate pcf50633_global and hence make pcf50633.c work with
multiple devices. pcf50633 is no longer a paltform device, but
an i2c device.
Diffstat (limited to 'arch/arm/plat-s3c24xx/neo1973_pm_bt.c')
-rw-r--r-- | arch/arm/plat-s3c24xx/neo1973_pm_bt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/plat-s3c24xx/neo1973_pm_bt.c b/arch/arm/plat-s3c24xx/neo1973_pm_bt.c index 8be584c9f82..dc149ac6d02 100644 --- a/arch/arm/plat-s3c24xx/neo1973_pm_bt.c +++ b/arch/arm/plat-s3c24xx/neo1973_pm_bt.c @@ -88,11 +88,11 @@ static ssize_t bt_write(struct device *dev, struct device_attribute *attr, if (s3c2410_gpio_getpin(GTA02_GPIO_BT_EN) == on) return count; neo1973_gpb_setpin(GTA02_GPIO_BT_EN, !on); - pcf50633_voltage_set(pcf50633_global, + pcf50633_voltage_set(gta02_pcf_pdata.pcf, PCF50633_REGULATOR_LDO4, on ? 3200 : 0); - pcf50633_onoff_set(pcf50633_global, + pcf50633_onoff_set(gta02_pcf_pdata.pcf, PCF50633_REGULATOR_LDO4, on); - vol = pcf50633_voltage_get(pcf50633_global, + vol = pcf50633_voltage_get(gta02_pcf_pdata.pcf, PCF50633_REGULATOR_LDO4); dev_info(dev, "GTA02 Set PCF50633 LDO4 = %d\n", vol); neo1973_gpb_setpin(GTA02_GPIO_BT_EN, on); @@ -158,7 +158,7 @@ static int __init gta01_bt_probe(struct platform_device *pdev) neo1973_gpb_setpin(GTA01_GPIO_BT_EN, 0); } else if (machine_is_neo1973_gta02()) { /* we make sure that the voltage is off */ - pcf50633_onoff_set(pcf50633_global, + pcf50633_onoff_set(gta02_pcf_pdata.pcf, PCF50633_REGULATOR_LDO4, 0); /* we pull reset to low to make sure that the chip doesn't * drain power through the reset line */ |