cregit-Linux how code gets into the kernel

Release 4.7 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/kconfig.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 rechbergermarkus 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 chehabmauro carvalho chehab2496.00%150.00%
hans verkuilhans verkuil14.00%150.00%
Total25100.00%2100.00%

#endif #endif /* S921_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
markus rechbergermarkus rechberger7562.50%116.67%
mauro carvalho chehabmauro carvalho chehab4335.83%350.00%
hans verkuilhans verkuil10.83%116.67%
arnd bergmannarnd bergmann10.83%116.67%
Total120100.00%6100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}