s921.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Sharp s921 driver
  3. *
  4. * Copyright (C) 2009 Mauro Carvalho Chehab <mchehab@redhat.com>
  5. * Copyright (C) 2009 Douglas Landgraf <dougsland@redhat.com>
  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 as
  9. * published by the Free Software Foundation version 2.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * General Public License for more details.
  15. */
  16. #ifndef S921_H
  17. #define S921_H
  18. #include <linux/dvb/frontend.h>
  19. struct s921_config {
  20. /* the demodulator's i2c address */
  21. u8 demod_address;
  22. };
  23. #if defined(CONFIG_DVB_S921) || (defined(CONFIG_DVB_S921_MODULE) \
  24. && defined(MODULE))
  25. extern struct dvb_frontend *s921_attach(const struct s921_config *config,
  26. struct i2c_adapter *i2c);
  27. extern struct i2c_adapter *s921_get_tuner_i2c_adapter(struct dvb_frontend *);
  28. #else
  29. static inline struct dvb_frontend *s921_attach(
  30. const struct s921_config *config, struct i2c_adapter *i2c)
  31. {
  32. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  33. return NULL;
  34. }
  35. static struct i2c_adapter *
  36. s921_get_tuner_i2c_adapter(struct dvb_frontend *fe)
  37. {
  38. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  39. return NULL;
  40. }
  41. #endif
  42. #endif /* S921_H */