s921.h 955 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Sharp s921 driver
  4. *
  5. * Copyright (C) 2009 Mauro Carvalho Chehab
  6. * Copyright (C) 2009 Douglas Landgraf <dougsland@redhat.com>
  7. */
  8. #ifndef S921_H
  9. #define S921_H
  10. #include <linux/dvb/frontend.h>
  11. struct s921_config {
  12. /* the demodulator's i2c address */
  13. u8 demod_address;
  14. };
  15. #if IS_REACHABLE(CONFIG_DVB_S921)
  16. extern struct dvb_frontend *s921_attach(const struct s921_config *config,
  17. struct i2c_adapter *i2c);
  18. extern struct i2c_adapter *s921_get_tuner_i2c_adapter(struct dvb_frontend *);
  19. #else
  20. static inline struct dvb_frontend *s921_attach(
  21. const struct s921_config *config, struct i2c_adapter *i2c)
  22. {
  23. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  24. return NULL;
  25. }
  26. static inline struct i2c_adapter *
  27. s921_get_tuner_i2c_adapter(struct dvb_frontend *fe)
  28. {
  29. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  30. return NULL;
  31. }
  32. #endif
  33. #endif /* S921_H */