mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
2874c5fd28
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 3029 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070032.746973796@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
61 lines
1.3 KiB
C
61 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* ImgTec IR Raw Decoder found in PowerDown Controller.
|
|
*
|
|
* Copyright 2010-2014 Imagination Technologies Ltd.
|
|
*/
|
|
|
|
#ifndef _IMG_IR_RAW_H_
|
|
#define _IMG_IR_RAW_H_
|
|
|
|
struct img_ir_priv;
|
|
|
|
#ifdef CONFIG_IR_IMG_RAW
|
|
|
|
/**
|
|
* struct img_ir_priv_raw - Private driver data for raw decoder.
|
|
* @rdev: Raw remote control device
|
|
* @timer: Timer to echo samples to keep soft decoders happy.
|
|
* @last_status: Last raw status bits.
|
|
*/
|
|
struct img_ir_priv_raw {
|
|
struct rc_dev *rdev;
|
|
struct timer_list timer;
|
|
u32 last_status;
|
|
};
|
|
|
|
static inline bool img_ir_raw_enabled(struct img_ir_priv_raw *raw)
|
|
{
|
|
return raw->rdev;
|
|
};
|
|
|
|
void img_ir_isr_raw(struct img_ir_priv *priv, u32 irq_status);
|
|
void img_ir_setup_raw(struct img_ir_priv *priv);
|
|
int img_ir_probe_raw(struct img_ir_priv *priv);
|
|
void img_ir_remove_raw(struct img_ir_priv *priv);
|
|
|
|
#else
|
|
|
|
struct img_ir_priv_raw {
|
|
};
|
|
static inline bool img_ir_raw_enabled(struct img_ir_priv_raw *raw)
|
|
{
|
|
return false;
|
|
};
|
|
static inline void img_ir_isr_raw(struct img_ir_priv *priv, u32 irq_status)
|
|
{
|
|
}
|
|
static inline void img_ir_setup_raw(struct img_ir_priv *priv)
|
|
{
|
|
}
|
|
static inline int img_ir_probe_raw(struct img_ir_priv *priv)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
static inline void img_ir_remove_raw(struct img_ir_priv *priv)
|
|
{
|
|
}
|
|
|
|
#endif /* CONFIG_IR_IMG_RAW */
|
|
|
|
#endif /* _IMG_IR_RAW_H_ */
|