cxd2099.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * cxd2099.h: Driver for the CXD2099AR Common Interface Controller
  3. *
  4. * Copyright (C) 2010 DigitalDevices UG
  5. *
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * version 2 only, as published by the Free Software Foundation.
  10. *
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  21. * 02110-1301, USA
  22. * Or, point your browser to http://www.gnu.org/copyleft/gpl.html
  23. */
  24. #ifndef _CXD2099_H_
  25. #define _CXD2099_H_
  26. #include <dvb_ca_en50221.h>
  27. #if defined(CONFIG_DVB_CXD2099) || \
  28. (defined(CONFIG_DVB_CXD2099_MODULE) && defined(MODULE))
  29. struct dvb_ca_en50221 *cxd2099_attach(u8 adr, void *priv, struct i2c_adapter *i2c);
  30. #else
  31. static inline struct dvb_ca_en50221 *cxd2099_attach(u8 adr, void *priv, struct i2c_adapter *i2c)
  32. {
  33. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  34. return NULL;
  35. }
  36. #endif
  37. #endif