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
Jiejing.Zhang
5878098ab3
cleanup more about battery gpio and platform data
2009-10-28 03:13:26 +08:00
Lars-Peter Clausen
7d446f792e
Add 2.6.31 patches and files.
2009-10-28 03:13:13 +08:00