Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
extcon-adc-jack.h
Go to the documentation of this file.
1 /*
2  * include/linux/extcon/extcon-adc-jack.h
3  *
4  * Analog Jack extcon driver with ADC-based detection capability.
5  *
6  * Copyright (C) 2012 Samsung Electronics
7  * MyungJoo Ham <[email protected]>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License version 2 as
11  * published by the Free Software Foundation.
12  *
13  */
14 
15 #ifndef _EXTCON_ADC_JACK_H_
16 #define _EXTCON_ADC_JACK_H_ __FILE__
17 
18 #include <linux/module.h>
19 #include <linux/extcon.h>
20 
35 struct adc_jack_cond {
36  u32 state; /* extcon state value. 0 if invalid */
39 };
40 
58  const char *name;
59  const char *consumer_channel;
60  /*
61  * The last entry should be NULL
62  */
63  const char **cable_names;
64  /* The last entry's state should be 0 */
66 
67  unsigned long irq_flags;
68  unsigned long handling_delay_ms; /* in ms */
69 };
70 
71 #endif /* _EXTCON_ADC_JACK_H */