zl10039.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. Driver for Zarlink ZL10039 DVB-S tuner
  3. Copyright (C) 2007 Jan D. Louw <jd.louw@mweb.co.za>
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. */
  16. #ifndef ZL10039_H
  17. #define ZL10039_H
  18. #include <linux/kconfig.h>
  19. #if IS_REACHABLE(CONFIG_DVB_ZL10039)
  20. struct dvb_frontend *zl10039_attach(struct dvb_frontend *fe,
  21. u8 i2c_addr,
  22. struct i2c_adapter *i2c);
  23. #else
  24. static inline struct dvb_frontend *zl10039_attach(struct dvb_frontend *fe,
  25. u8 i2c_addr,
  26. struct i2c_adapter *i2c)
  27. {
  28. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  29. return NULL;
  30. }
  31. #endif /* CONFIG_DVB_ZL10039 */
  32. #endif /* ZL10039_H */