treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / media / dvb-frontends / tua6100.h
blob2acbf4c221d344cee91baa9f68024477569a3e9a
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Driver for Infineon tua6100 PLL.
5 * (c) 2006 Andrew de Quincey
7 * Based on code found in budget-av.c, which has the following:
8 * Compiled from various sources by Michael Hunold <michael@mihu.de>
10 * CI interface support (c) 2004 Olivier Gournet <ogournet@anevia.com> &
11 * Andrew de Quincey <adq_dvb@lidskialf.net>
13 * Copyright (C) 2002 Ralph Metzler <rjkm@metzlerbros.de>
15 * Copyright (C) 1999-2002 Ralph Metzler
16 * & Marcus Metzler for convergence integrated media GmbH
19 #ifndef __DVB_TUA6100_H__
20 #define __DVB_TUA6100_H__
22 #include <linux/i2c.h>
23 #include <media/dvb_frontend.h>
25 #if IS_REACHABLE(CONFIG_DVB_TUA6100)
26 extern struct dvb_frontend *tua6100_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c);
27 #else
28 static inline struct dvb_frontend* tua6100_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c)
30 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
31 return NULL;
33 #endif // CONFIG_DVB_TUA6100
35 #endif