mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 09:15:42 +07:00
50acfb2b76
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 version 2 this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 97 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Alexios Zavras <alexios.zavras@intel.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190529141901.025053186@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
39 lines
955 B
C
39 lines
955 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Sharp s921 driver
|
|
*
|
|
* Copyright (C) 2009 Mauro Carvalho Chehab
|
|
* Copyright (C) 2009 Douglas Landgraf <dougsland@redhat.com>
|
|
*/
|
|
|
|
#ifndef S921_H
|
|
#define S921_H
|
|
|
|
#include <linux/dvb/frontend.h>
|
|
|
|
struct s921_config {
|
|
/* the demodulator's i2c address */
|
|
u8 demod_address;
|
|
};
|
|
|
|
#if IS_REACHABLE(CONFIG_DVB_S921)
|
|
extern struct dvb_frontend *s921_attach(const struct s921_config *config,
|
|
struct i2c_adapter *i2c);
|
|
extern struct i2c_adapter *s921_get_tuner_i2c_adapter(struct dvb_frontend *);
|
|
#else
|
|
static inline struct dvb_frontend *s921_attach(
|
|
const struct s921_config *config, struct i2c_adapter *i2c)
|
|
{
|
|
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
|
|
return NULL;
|
|
}
|
|
static inline struct i2c_adapter *
|
|
s921_get_tuner_i2c_adapter(struct dvb_frontend *fe)
|
|
{
|
|
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
|
|
return NULL;
|
|
}
|
|
#endif
|
|
|
|
#endif /* S921_H */
|