pda_power: add support for using otg transceiver events
authorDima Zavin <dima@android.com>
Fri, 8 Jul 2011 06:20:27 +0000 (23:20 -0700)
committerDima Zavin <dima@android.com>
Mon, 11 Jul 2011 22:30:09 +0000 (15:30 -0700)
commit2fc52d645892c7a5fb9915b09351f934ea03f15d
tree877aca8c73506a143c85ab7fc1f35859886368fa
parent89daa34bcd42062221247172ea2653521dc89e6c
pda_power: add support for using otg transceiver events

If the platform data sets the use_otg_notifier flag,
the driver will now register an otg notifier callback and listen
to transceiver events for AC/USB plug-in events instead. This would
normally be used by not specifying is_xx_online callbacks and
not specifying any irqs so the state machine is completely driven
from OTG xceiver events.

Change-Id: Ic4b3bc4010f299156e41fd2411696c7ff5a88e92
Signed-off-by: Dima Zavin <dima@android.com>
drivers/power/pda_power.c
include/linux/pda_power.h