mirror of
https://github.com/torvalds/linux.git
synced 2024-12-21 10:31:54 +00:00
01da44446b
This patch corrects the SPDX License Identifier style in header file related to Siano Mobile Silicon Digital TV. For C header files Documentation/process/license-rules.rst mandates C-like comments (opposed to C source files where C++ style should be used) Changes made by using a script provided by Joe Perches here: https://lkml.org/lkml/2019/2/7/46 Suggested-by: Joe Perches <joe@perches.com> Signed-off-by: Nishad Kamdar <nishadkamdar@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
49 lines
1.0 KiB
C
49 lines
1.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
*
|
|
* Siano Mobile Silicon, Inc.
|
|
* MDTV receiver kernel modules.
|
|
* Copyright (C) 2006-2009, Uri Shkolnik
|
|
*
|
|
* Copyright (c) 2010 - Mauro Carvalho Chehab
|
|
* - Ported the driver to use rc-core
|
|
* - IR raw event decoding is now done at rc-core
|
|
* - Code almost re-written
|
|
*/
|
|
|
|
#ifndef __SMS_IR_H__
|
|
#define __SMS_IR_H__
|
|
|
|
#include <linux/input.h>
|
|
#include <media/rc-core.h>
|
|
|
|
struct smscore_device_t;
|
|
|
|
struct ir_t {
|
|
struct rc_dev *dev;
|
|
char name[40];
|
|
char phys[32];
|
|
|
|
char *rc_codes;
|
|
|
|
u32 timeout;
|
|
u32 controller;
|
|
};
|
|
|
|
#ifdef CONFIG_SMS_SIANO_RC
|
|
int sms_ir_init(struct smscore_device_t *coredev);
|
|
void sms_ir_exit(struct smscore_device_t *coredev);
|
|
void sms_ir_event(struct smscore_device_t *coredev,
|
|
const char *buf, int len);
|
|
#else
|
|
inline static int sms_ir_init(struct smscore_device_t *coredev) {
|
|
return 0;
|
|
}
|
|
inline static void sms_ir_exit(struct smscore_device_t *coredev) {};
|
|
inline static void sms_ir_event(struct smscore_device_t *coredev,
|
|
const char *buf, int len) {};
|
|
#endif
|
|
|
|
#endif /* __SMS_IR_H__ */
|
|
|