[LG Optimus 2x] wkpark:
Recent changes are pushed

* various minor bugs are fixed by pastime1971 (thanks~)

* star: add CONFIG_STAR_BATTERY_UNIT_UV to support voltage unit in uV

* su660: adjust star_capacity_from_voltage_via_calculate()

- i think it is not su660 specifc. so Ive just applied it onto the P99x

use star_capacity_from_voltage_via_calculate() to adjust battery capacity after singular 3G/BB/rild behavior to fix "999%" battery bug.

(See also http://xdaforums.com/showpost.php?p=23106363&postcount=211)

* p99x: fix oops while shutdown

* star: fixup some minor bugs (various compiler warnings are fixed)

[FONT="Courier New"]commit 31575cf15ca7b39116ddd8cd025ac3b609571bdd
Author: Sang Tae Park <pastime1971@gmail.com>
Date: Sun Mar 25 14:06:24 2012 -0700

star: fixed various minor bugs

- fix a missing return value in NvOdmServicesPmuGetHookValue
- fix a wrong argument type for NvOdmPmuReadRtc
- fix headset schedule work
- fix error checking
- fix sscanf in bd_address_store

commit 0eb14da311d9376af9e646e028913825c5428cba
Author: Won-Kyu Park <wkpark@gmail.com>
Date: Thu Mar 29 18:39:28 2012 +0900

star: add CONFIG_STAR_BATTERY_UNIT_UV to support voltage unit in uV

CM7/CM9 based custom rom use voltage unit in uV
add CONFIG_STAR_BATTERY_UNIT_UV option to support it

Conflicts:

drivers/star/Kconfig
drivers/star/star_battery_charger.c

commit 3d648ded0451c9b18b510198471e479c4012de1c
Author: Won-Kyu Park <wkpark@gmail.com>
Date: Thu Mar 29 06:35:01 2012 +0900

su660: adjust star_capacity_from_voltage_via_calculate()

star_capacity_from_voltage_via_calculate() seems not good enough
especially for AcLineStatus == ON.
try to adjust voltage-capacity curve, cleanup and make it more readable

Conflicts:

drivers/star/star_battery_charger.c

commit 206ea2d0f0e6a548eed55f1a5df7535fc236b16d
Author: Won-Kyu Park <wkpark@gmail.com>
Date: Wed Mar 28 20:33:55 2012 +0900

star: use star_capacity_from_voltage_via_calculate() in case of BatteryGauge_on == FALSE

- add POWER_SUPPLY_PROP_VOLTAGE_{MIN,MAX}
- show battery icon correctly in case of BatteryGauge_on == FALSE

commit 5c1198c3e454b4e9ae2b5fe8852d7b3eaa3dd03b
Author: Won-Kyu Park <wkpark@gmail.com>
Date: Tue Mar 27 23:11:13 2012 +0900

p99x: fix oops while shutdown

partially update tegra_battery_shutdown() from V20H to fix this issue.

...
[ 868.588607] tegra_battery_shutdown
[ 868.597091] Restarting system.
[ 868.604015] star_emergency_restart : sys reset : timeout = 20 sec
[ 868.617694] tegra_machine_restart
[ 868.624627] Unable to handle kernel paging request at virtual address da98d008
[ 868.638506] pgd = d8994000
[ 868.645447] [da98d008] *pgd=1982c811, *pte=00000000, *ppte=00000000
[ 868.659262] Internal error: Oops: 7 [#1] PREEMPT SMP
[ 868.666130] Modules linked in:
[ 868.673060] CPU: 1 Not tainted (3.0.8-dev+ #2)
[ 868.686605] PC is at NvOdmGpioGetState+0x28/0x48
[ 868.693504] LR is at [b]star_read_charger_state_gpio[/b]+0x38/0xb0
[ 868.706939] pc : [<c008b930>] lr : [<c03e9350>] psr: a0000113
[ 868.706944] sp : d89edb88 ip : d89edba8 fp : d89edba4
[ 868.727449] r10: 00000001 r9 : 00000000 r8 : c07c3980
[ 868.734303] r7 : d920f25c r6 : c074e080 r5 : d89edbcf r4 : d89edba8
[ 868.748080] r3 : 00000001 r2 : d89edba8 r1 : 80000092 r0 : da98d004
[ 868.761700] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 868.775425] Control: 10c53c7d Table: 1899404a DAC: 00000015
...

commit 25d4d1f9ca956c3d38d00c6bb569419ba5c9bcb9
Author: Won-Kyu Park <wkpark@gmail.com>
Date: Wed Mar 28 03:25:43 2012 +0900

star: fixup some minor bugs

- fixed *_show(), *_store()
- gyro_accel: remove unused variables
- fixed "function declaration isn't a prototype" warnings
- move pg_readl/pg_writel declaration[/FONT]