This source file includes following definitions.
- img_ir_raw_enabled
- img_ir_raw_enabled
- img_ir_isr_raw
- img_ir_setup_raw
- img_ir_probe_raw
- img_ir_remove_raw
1
2
3
4
5
6
7
8 #ifndef _IMG_IR_RAW_H_
9 #define _IMG_IR_RAW_H_
10
11 struct img_ir_priv;
12
13 #ifdef CONFIG_IR_IMG_RAW
14
15
16
17
18
19
20
21 struct img_ir_priv_raw {
22 struct rc_dev *rdev;
23 struct timer_list timer;
24 u32 last_status;
25 };
26
27 static inline bool img_ir_raw_enabled(struct img_ir_priv_raw *raw)
28 {
29 return raw->rdev;
30 };
31
32 void img_ir_isr_raw(struct img_ir_priv *priv, u32 irq_status);
33 void img_ir_setup_raw(struct img_ir_priv *priv);
34 int img_ir_probe_raw(struct img_ir_priv *priv);
35 void img_ir_remove_raw(struct img_ir_priv *priv);
36
37 #else
38
39 struct img_ir_priv_raw {
40 };
41 static inline bool img_ir_raw_enabled(struct img_ir_priv_raw *raw)
42 {
43 return false;
44 };
45 static inline void img_ir_isr_raw(struct img_ir_priv *priv, u32 irq_status)
46 {
47 }
48 static inline void img_ir_setup_raw(struct img_ir_priv *priv)
49 {
50 }
51 static inline int img_ir_probe_raw(struct img_ir_priv *priv)
52 {
53 return -ENODEV;
54 }
55 static inline void img_ir_remove_raw(struct img_ir_priv *priv)
56 {
57 }
58
59 #endif
60
61 #endif