xref: /kernel/linux/linux-5.10/drivers/media/tuners/tda9887.h
  • 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 __TDA9887_H__
68c2ecf20Sopenharmony_ci#define __TDA9887_H__
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#include <linux/i2c.h>
98c2ecf20Sopenharmony_ci#include <media/dvb_frontend.h>
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------ */
128c2ecf20Sopenharmony_ci#if IS_REACHABLE(CONFIG_MEDIA_TUNER_TDA9887)
138c2ecf20Sopenharmony_ciextern struct dvb_frontend *tda9887_attach(struct dvb_frontend *fe,
148c2ecf20Sopenharmony_ci					   struct i2c_adapter *i2c_adap,
158c2ecf20Sopenharmony_ci					   u8 i2c_addr);
168c2ecf20Sopenharmony_ci#else
178c2ecf20Sopenharmony_cistatic inline struct dvb_frontend *tda9887_attach(struct dvb_frontend *fe,
188c2ecf20Sopenharmony_ci						  struct i2c_adapter *i2c_adap,
198c2ecf20Sopenharmony_ci						  u8 i2c_addr)
208c2ecf20Sopenharmony_ci{
218c2ecf20Sopenharmony_ci	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
228c2ecf20Sopenharmony_ci	return NULL;
238c2ecf20Sopenharmony_ci}
248c2ecf20Sopenharmony_ci#endif
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci#endif /* __TDA9887_H__ */
27

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