mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
b78bbafe15
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 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-or-later has been chosen to replace the boilerplate/reference in 2 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Richard Fontana <rfontana@redhat.com> Reviewed-by: Armijn Hemel <armijn@tjaldur.nl> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527063114.206914251@linutronix.de Link: https://lkml.kernel.org/r/20190524100842.915521339@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
37 lines
963 B
C
37 lines
963 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Support for the Broadcom BCM3510 ATSC demodulator (1st generation Air2PC)
|
|
*
|
|
* Copyright (C) 2001-5, B2C2 inc.
|
|
*
|
|
* GPL/Linux driver written by Patrick Boettcher <patrick.boettcher@posteo.de>
|
|
*/
|
|
#ifndef BCM3510_H
|
|
#define BCM3510_H
|
|
|
|
#include <linux/dvb/frontend.h>
|
|
#include <linux/firmware.h>
|
|
|
|
struct bcm3510_config
|
|
{
|
|
/* the demodulator's i2c address */
|
|
u8 demod_address;
|
|
|
|
/* request firmware for device */
|
|
int (*request_firmware)(struct dvb_frontend* fe, const struct firmware **fw, char* name);
|
|
};
|
|
|
|
#if IS_REACHABLE(CONFIG_DVB_BCM3510)
|
|
extern struct dvb_frontend* bcm3510_attach(const struct bcm3510_config* config,
|
|
struct i2c_adapter* i2c);
|
|
#else
|
|
static inline struct dvb_frontend* bcm3510_attach(const struct bcm3510_config* config,
|
|
struct i2c_adapter* i2c)
|
|
{
|
|
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
|
|
return NULL;
|
|
}
|
|
#endif // CONFIG_DVB_BCM3510
|
|
|
|
#endif
|