extcon: adc-jack: add suspend/resume support
adding suspend and resume funtionality for extcon-adc-jack driver to configure system wake up for extcon events, also adding support to enable/disable system wakeup through flag wakeup_source based on platform requirement. Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
This commit is contained in:

committed by
Chanwoo Choi

parent
5d5c4c139d
commit
1b6cf31010
@@ -53,6 +53,7 @@ struct adc_jack_cond {
|
||||
* milli-seconds after the interrupt occurs. You may
|
||||
* describe such delays with @handling_delay_ms, which
|
||||
* is rounded-off by jiffies.
|
||||
* @wakeup_source: flag to wake up the system for extcon events.
|
||||
*/
|
||||
struct adc_jack_pdata {
|
||||
const char *name;
|
||||
@@ -65,6 +66,7 @@ struct adc_jack_pdata {
|
||||
|
||||
unsigned long irq_flags;
|
||||
unsigned long handling_delay_ms; /* in ms */
|
||||
bool wakeup_source;
|
||||
};
|
||||
|
||||
#endif /* _EXTCON_ADC_JACK_H */
|
||||
|
Reference in New Issue
Block a user