sched: Remove double_rq_lock() from __migrate_task()
[linux/fpc-iii.git] / drivers / media / rc / img-ir / img-ir-raw.h
blob9802ffd51b9a32ca311794f7feea05ca4b6458db
1 /*
2 * ImgTec IR Raw Decoder found in PowerDown Controller.
4 * Copyright 2010-2014 Imagination Technologies Ltd.
5 */
7 #ifndef _IMG_IR_RAW_H_
8 #define _IMG_IR_RAW_H_
10 struct img_ir_priv;
12 #ifdef CONFIG_IR_IMG_RAW
14 /**
15 * struct img_ir_priv_raw - Private driver data for raw decoder.
16 * @rdev: Raw remote control device
17 * @timer: Timer to echo samples to keep soft decoders happy.
18 * @last_status: Last raw status bits.
20 struct img_ir_priv_raw {
21 struct rc_dev *rdev;
22 struct timer_list timer;
23 u32 last_status;
26 static inline bool img_ir_raw_enabled(struct img_ir_priv_raw *raw)
28 return raw->rdev;
31 void img_ir_isr_raw(struct img_ir_priv *priv, u32 irq_status);
32 void img_ir_setup_raw(struct img_ir_priv *priv);
33 int img_ir_probe_raw(struct img_ir_priv *priv);
34 void img_ir_remove_raw(struct img_ir_priv *priv);
36 #else
38 struct img_ir_priv_raw {
40 static inline bool img_ir_raw_enabled(struct img_ir_priv_raw *raw)
42 return false;
44 static inline void img_ir_isr_raw(struct img_ir_priv *priv, u32 irq_status)
47 static inline void img_ir_setup_raw(struct img_ir_priv *priv)
50 static inline int img_ir_probe_raw(struct img_ir_priv *priv)
52 return -ENODEV;
54 static inline void img_ir_remove_raw(struct img_ir_priv *priv)
58 #endif /* CONFIG_IR_IMG_RAW */
60 #endif /* _IMG_IR_RAW_H_ */