aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDima Zavin <dima@android.com>2011-07-07 23:20:27 -0700
committerDima Zavin <dima@android.com>2011-07-11 15:30:09 -0700
commit2fc52d645892c7a5fb9915b09351f934ea03f15d (patch)
tree877aca8c73506a143c85ab7fc1f35859886368fa /include
parent89daa34bcd42062221247172ea2653521dc89e6c (diff)
downloadkernel_samsung_aries-2fc52d645892c7a5fb9915b09351f934ea03f15d.zip
kernel_samsung_aries-2fc52d645892c7a5fb9915b09351f934ea03f15d.tar.gz
kernel_samsung_aries-2fc52d645892c7a5fb9915b09351f934ea03f15d.tar.bz2
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/pda_power.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pda_power.h b/include/linux/pda_power.h
index c9e4d81..2bb62bf 100644
--- a/include/linux/pda_power.h
+++ b/include/linux/pda_power.h
@@ -35,6 +35,8 @@ struct pda_power_pdata {
unsigned int polling_interval; /* msecs, default is 2000 */
unsigned long ac_max_uA; /* current to draw when on AC */
+
+ bool use_otg_notifier;
};
#endif /* __PDA_POWER_H__ */