ec100.h 646 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * E3C EC100 demodulator driver
  4. *
  5. * Copyright (C) 2009 Antti Palosaari <crope@iki.fi>
  6. */
  7. #ifndef EC100_H
  8. #define EC100_H
  9. #include <linux/dvb/frontend.h>
  10. struct ec100_config {
  11. /* demodulator's I2C address */
  12. u8 demod_address;
  13. };
  14. #if IS_REACHABLE(CONFIG_DVB_EC100)
  15. extern struct dvb_frontend *ec100_attach(const struct ec100_config *config,
  16. struct i2c_adapter *i2c);
  17. #else
  18. static inline struct dvb_frontend *ec100_attach(
  19. const struct ec100_config *config, struct i2c_adapter *i2c)
  20. {
  21. pr_warn("%s: driver disabled by Kconfig\n", __func__);
  22. return NULL;
  23. }
  24. #endif
  25. #endif /* EC100_H */