xref: /kernel/linux/linux-5.10/drivers/media/tuners/mt2063.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 */
28c2ecf20Sopenharmony_ci#ifndef __MT2063_H__
38c2ecf20Sopenharmony_ci#define __MT2063_H__
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <media/dvb_frontend.h>
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_cistruct mt2063_config {
88c2ecf20Sopenharmony_ci	u8 tuner_address;
98c2ecf20Sopenharmony_ci	u32 refclock;
108c2ecf20Sopenharmony_ci};
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#if IS_REACHABLE(CONFIG_MEDIA_TUNER_MT2063)
138c2ecf20Sopenharmony_cistruct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
148c2ecf20Sopenharmony_ci				   struct mt2063_config *config,
158c2ecf20Sopenharmony_ci				   struct i2c_adapter *i2c);
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#else
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_cistatic inline struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
208c2ecf20Sopenharmony_ci				   struct mt2063_config *config,
218c2ecf20Sopenharmony_ci				   struct i2c_adapter *i2c)
228c2ecf20Sopenharmony_ci{
238c2ecf20Sopenharmony_ci	printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
248c2ecf20Sopenharmony_ci	return NULL;
258c2ecf20Sopenharmony_ci}
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci#endif /* CONFIG_DVB_MT2063 */
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#endif /* __MT2063_H__ */
30

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