lnbp22.h 927 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * lnbp22.h - driver for lnb supply and control ic lnbp22
  4. *
  5. * Copyright (C) 2006 Dominik Kuhlen
  6. * Based on lnbp21.h
  7. *
  8. * the project's page is at https://linuxtv.org
  9. */
  10. #ifndef _LNBP22_H
  11. #define _LNBP22_H
  12. /* Enable */
  13. #define LNBP22_EN 0x10
  14. /* Voltage selection */
  15. #define LNBP22_VSEL 0x02
  16. /* Plus 1 Volt Bit */
  17. #define LNBP22_LLC 0x01
  18. #include <linux/dvb/frontend.h>
  19. #if IS_REACHABLE(CONFIG_DVB_LNBP22)
  20. /*
  21. * override_set and override_clear control which system register bits (above)
  22. * to always set & clear
  23. */
  24. extern struct dvb_frontend *lnbp22_attach(struct dvb_frontend *fe,
  25. struct i2c_adapter *i2c);
  26. #else
  27. static inline struct dvb_frontend *lnbp22_attach(struct dvb_frontend *fe,
  28. struct i2c_adapter *i2c)
  29. {
  30. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  31. return NULL;
  32. }
  33. #endif /* CONFIG_DVB_LNBP22 */
  34. #endif /* _LNBP22_H */