lnbh29.h 806 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Driver for LNB supply and control IC STMicroelectronics LNBH29
  4. *
  5. * Copyright (c) 2018 Socionext Inc.
  6. */
  7. #ifndef LNBH29_H
  8. #define LNBH29_H
  9. #include <linux/i2c.h>
  10. #include <linux/dvb/frontend.h>
  11. /* Using very low E.S.R. capacitors or ceramic caps */
  12. #define LNBH29_DATA_COMP BIT(3)
  13. struct lnbh29_config {
  14. u8 i2c_address;
  15. u8 data_config;
  16. };
  17. #if IS_REACHABLE(CONFIG_DVB_LNBH29)
  18. struct dvb_frontend *lnbh29_attach(struct dvb_frontend *fe,
  19. struct lnbh29_config *cfg,
  20. struct i2c_adapter *i2c);
  21. #else
  22. static inline struct dvb_frontend *lnbh29_attach(struct dvb_frontend *fe,
  23. struct lnbh29_config *cfg,
  24. struct i2c_adapter *i2c)
  25. {
  26. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  27. return NULL;
  28. }
  29. #endif
  30. #endif