[PATCH] jz battery driver cleanup
Xiangfu Liu
xiangfu at qi-hardware.com
Mon Sep 21 14:05:38 EDT 2009
Hi
Applied, thanks.
I made some change:
--
-#define JZ_BAT_MAX_VOLTAGE 4200000
-#define JZ_BAT_MIN_VOLTAGE 3600000
static struct jz_batt_info jz_batt_gpio_platform_data = {
.dc_dect_gpio = GPIO_DC_DETE_N,
.usb_dect_gpio = GPIO_USB_DETE,
.charg_stat_gpio = GPIO_CHARG_STAT_N,
- .min_voltag = JZ_BAT_MIN_VOLTAGE,
- .max_voltag = JZ_BAT_MAX_VOLTAGE,
+ .min_voltag = 3600000,
+ .max_voltag = 4200000,
.batt_tech = POWER_SUPPLY_TECHNOLOGY_LIPO,
};
ZhangJieJing wrote:
> This patch is cleanup more about gpio and platform data.
>
> Signed-off-by: Jiejing.Zhang <kzjeef at gmail.com>
> ---
> .../files-2.6.31/arch/mips/jz4740/platform.c | 23 +++
> .../xburst/files-2.6.31/drivers/power/jz_battery.c | 185 +++++++++++++++-----
> 2 files changed, 163 insertions(+), 45 deletions(-)
More information about the discussion
mailing list