xref: /kernel/linux/linux-6.6/drivers/media/tuners/tuner-simple.h (revision 62306a36)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/drivers/media/tuners/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci*/
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#ifndef __TUNER_SIMPLE_H__
662306a36Sopenharmony_ci#define __TUNER_SIMPLE_H__
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#include <linux/i2c.h>
962306a36Sopenharmony_ci#include <media/dvb_frontend.h>
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#if IS_REACHABLE(CONFIG_MEDIA_TUNER_SIMPLE)
1262306a36Sopenharmony_ciextern struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe,
1362306a36Sopenharmony_ci						struct i2c_adapter *i2c_adap,
1462306a36Sopenharmony_ci						u8 i2c_addr,
1562306a36Sopenharmony_ci						unsigned int type);
1662306a36Sopenharmony_ci#else
1762306a36Sopenharmony_cistatic inline struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe,
1862306a36Sopenharmony_ci						       struct i2c_adapter *i2c_adap,
1962306a36Sopenharmony_ci						       u8 i2c_addr,
2062306a36Sopenharmony_ci						       unsigned int type)
2162306a36Sopenharmony_ci{
2262306a36Sopenharmony_ci	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
2362306a36Sopenharmony_ci	return NULL;
2462306a36Sopenharmony_ci}
2562306a36Sopenharmony_ci#endif
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ci#endif /* __TUNER_SIMPLE_H__ */
28

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