diff options
author | Dima Zavin <dima@android.com> | 2011-07-10 16:01:15 -0700 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2011-08-19 21:03:22 +0400 |
commit | 9ad63986c606c60e2e916b1b96f22991f966d9cc (patch) | |
tree | 336bf435cea5ec4143134f98f0712d7a5bcc6b8c /include/linux/pda_power.h | |
parent | 0bea4b866448af09051e357b139f598aa70b8614 (diff) | |
download | lwn-9ad63986c606c60e2e916b1b96f22991f966d9cc.tar.gz lwn-9ad63986c606c60e2e916b1b96f22991f966d9cc.zip |
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>
Diffstat (limited to 'include/linux/pda_power.h')
-rw-r--r-- | include/linux/pda_power.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pda_power.h b/include/linux/pda_power.h index c9e4d814ff77..2bb62bf296ac 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__ */ |