xref: /kernel/linux/linux-5.10/drivers/media/tuners/tuner-simple.h (revision 8c2ecf20)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/drivers/media/tuners/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci*/
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#ifndef __TUNER_SIMPLE_H__
68c2ecf20Sopenharmony_ci#define __TUNER_SIMPLE_H__
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#include <linux/i2c.h>
98c2ecf20Sopenharmony_ci#include <media/dvb_frontend.h>
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#if IS_REACHABLE(CONFIG_MEDIA_TUNER_SIMPLE)
128c2ecf20Sopenharmony_ciextern struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe,
138c2ecf20Sopenharmony_ci						struct i2c_adapter *i2c_adap,
148c2ecf20Sopenharmony_ci						u8 i2c_addr,
158c2ecf20Sopenharmony_ci						unsigned int type);
168c2ecf20Sopenharmony_ci#else
178c2ecf20Sopenharmony_cistatic inline struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe,
188c2ecf20Sopenharmony_ci						       struct i2c_adapter *i2c_adap,
198c2ecf20Sopenharmony_ci						       u8 i2c_addr,
208c2ecf20Sopenharmony_ci						       unsigned int type)
218c2ecf20Sopenharmony_ci{
228c2ecf20Sopenharmony_ci	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
238c2ecf20Sopenharmony_ci	return NULL;
248c2ecf20Sopenharmony_ci}
258c2ecf20Sopenharmony_ci#endif
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci#endif /* __TUNER_SIMPLE_H__ */
28

Indexes created Thu Nov 07 10:32:03 CST 2024