cregit-Linux how code gets into the kernel

Release 4.11 drivers/media/dvb-frontends/s921.h

/*
 *   Sharp s921 driver
 *
 *   Copyright (C) 2009 Mauro Carvalho Chehab
 *   Copyright (C) 2009 Douglas Landgraf <dougsland@redhat.com>
 *
 *   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.
 */

#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; }

Contributors

PersonTokensPropCommitsCommitProp
Markus Rechberger31100.00%1100.00%
Total31100.00%1100.00%


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; }

Contributors

PersonTokensPropCommitsCommitProp
Mauro Carvalho Chehab2496.00%150.00%
Hans Verkuil14.00%150.00%
Total25100.00%2100.00%

#endif #endif /* S921_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Markus Rechberger7463.25%116.67%
Mauro Carvalho Chehab4135.04%350.00%
Hans Verkuil10.85%116.67%
Arnd Bergmann10.85%116.67%
Total117100.00%6100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.