[PATCH 3/8] improve-style-neo1973_pm_bt.patch
Nelson Castillo
nelsoneci at gmail.com
Thu Oct 16 19:00:47 CEST 2008
Remove unwanted spaces.
Small style improvements.
Signed-off-by: Nelson Castillo <nelsoneci at gmail.com>
---
0 files changed, 0 insertions(+), 0 deletions(-)
diff --git a/arch/arm/plat-s3c24xx/neo1973_pm_bt.c b/arch/arm/plat-s3c24xx/neo1973_pm_bt.c
index 8be584c..0abed49 100644
--- a/arch/arm/plat-s3c24xx/neo1973_pm_bt.c
+++ b/arch/arm/plat-s3c24xx/neo1973_pm_bt.c
@@ -1,7 +1,7 @@
/*
- * Bluetooth PM code for the FIC Neo1973 GSM Phone
+ * Bluetooth PM code for the Openmoko GTA01/GTA02 GSM Phone
*
- * (C) 2007 by Openmoko Inc.
+ * (C) 2007-2008 by Openmoko Inc.
* Author: Harald Welte <laforge at openmoko.org>
* All rights reserved.
*
@@ -29,18 +29,17 @@
#include <linux/pcf50633.h>
-#define DRVMSG "FIC Neo1973 Bluetooth Power Management"
+#define DRVMSG "Openmoko GTA01/GTA02 Bluetooth Power Management"
static ssize_t bt_read(struct device *dev, struct device_attribute *attr,
char *buf)
{
- int ret = 0;
+ int ret = 0;
if (!strcmp(attr->attr.name, "power_on")) {
-
if (machine_is_neo1973_gta01()) {
if (pcf50606_onoff_get(pcf50606_global,
- PCF50606_REGULATOR_D1REG) &&
+ PCF50606_REGULATOR_D1REG) &&
pcf50606_voltage_get(pcf50606_global,
PCF50606_REGULATOR_D1REG) == 3100)
ret = 1;
@@ -89,11 +88,13 @@ static ssize_t bt_write(struct device *dev, struct device_attribute *attr,
return count;
neo1973_gpb_setpin(GTA02_GPIO_BT_EN, !on);
pcf50633_voltage_set(pcf50633_global,
- PCF50633_REGULATOR_LDO4, on ? 3200 : 0);
+ PCF50633_REGULATOR_LDO4,
+ on ? 3200 : 0);
pcf50633_onoff_set(pcf50633_global,
- PCF50633_REGULATOR_LDO4, on);
+ PCF50633_REGULATOR_LDO4,
+ on);
vol = pcf50633_voltage_get(pcf50633_global,
- PCF50633_REGULATOR_LDO4);
+ PCF50633_REGULATOR_LDO4);
dev_info(dev, "GTA02 Set PCF50633 LDO4 = %d\n", vol);
neo1973_gpb_setpin(GTA02_GPIO_BT_EN, on);
}
@@ -154,14 +155,14 @@ static int __init gta01_bt_probe(struct platform_device *pdev)
pcf50606_onoff_set(pcf50606_global,
PCF50606_REGULATOR_D1REG, 0);
/* we pull reset to low to make sure that the chip doesn't
- * drain power through the reset line */
+ * drain power through the reset line */
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_REGULATOR_LDO4, 0);
+ PCF50633_REGULATOR_LDO4, 0);
/* we pull reset to low to make sure that the chip doesn't
- * drain power through the reset line */
+ * drain power through the reset line */
neo1973_gpb_setpin(GTA02_GPIO_BT_EN, 0);
}
More information about the openmoko-kernel
mailing list