nxt6000.h 867 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. NxtWave Communications - NXT6000 demodulator driver
  4. Copyright (C) 2002-2003 Florian Schirmer <jolt@tuxbox.org>
  5. Copyright (C) 2003 Paul Andreassen <paul@andreassen.com.au>
  6. */
  7. #ifndef NXT6000_H
  8. #define NXT6000_H
  9. #include <linux/dvb/frontend.h>
  10. struct nxt6000_config
  11. {
  12. /* the demodulator's i2c address */
  13. u8 demod_address;
  14. /* should clock inversion be used? */
  15. u8 clock_inversion:1;
  16. };
  17. #if IS_REACHABLE(CONFIG_DVB_NXT6000)
  18. extern struct dvb_frontend* nxt6000_attach(const struct nxt6000_config* config,
  19. struct i2c_adapter* i2c);
  20. #else
  21. static inline struct dvb_frontend* nxt6000_attach(const struct nxt6000_config* config,
  22. struct i2c_adapter* i2c)
  23. {
  24. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  25. return NULL;
  26. }
  27. #endif // CONFIG_DVB_NXT6000
  28. #endif // NXT6000_H