]> git.baikalelectronics.ru Git - kernel.git/commit
pda_power: Add support for using otg transceiver events
authorDima Zavin <dima@android.com>
Sun, 10 Jul 2011 23:01:15 +0000 (16:01 -0700)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Fri, 19 Aug 2011 17:03:22 +0000 (21:03 +0400)
commitce82310bbe1203d16ef219e5d24b98eefd08e7c6
tree336bf435cea5ec4143134f98f0712d7a5bcc6b8c
parent25b479920221a53885cb52f8be5ccf538b487674
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.

Signed-off-by: Dima Zavin <dima@android.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/pda_power.c
include/linux/pda_power.h