1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-10 11:20:16 +02:00
Commit Graph

5 Commits

Author SHA1 Message Date
JieJing.Zhang
907a34b80e jz_battery: fix bug cause kernel panic.
all about container_of macro.

Signed-off-by: JieJing.Zhang <kzjeef@gmail.com>
2009-10-28 03:13:33 +08:00
Xiangfu Liu
110c87a5f7 revert commit: 3dbe390f5347b6c279c9d193445e1c86fbee9894
those change make kernel panic.
2009-10-28 03:13:33 +08:00
Jiejing.Zhang
cd0d71a697 jz-battery: improve code. clear static var.
1. clear static global var, use platform_get_drvdata.
2. check gpio state before register power supply.

Signed-off-by: Jiejing.Zhang <kzjeef@gmail.com>
2009-10-28 03:13:28 +08:00
Jiejing.Zhang
c91cec083b jz_battery: improve driver code.
1. put all gobal var to a driver info struct.
2. check gpio before use it.

Signed-off-by: Jiejing.Zhang <kzjeef@gmail.com>
2009-10-28 03:13:28 +08:00
Lars-Peter Clausen
bdbda932b8 Compile fix jz4740-battery.c, use adc driver and some other minor cleanups.
Enable adc and battery.
2009-10-28 03:13:27 +08:00