leds-pca9685.h 770 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright 2013 Maximilian Güntner <maximilian.guentner@gmail.com>
  3. *
  4. * This file is subject to the terms and conditions of version 2 of
  5. * the GNU General Public License. See the file COPYING in the main
  6. * directory of this archive for more details.
  7. *
  8. * Based on leds-pca963x.h by Peter Meerwald <p.meerwald@bct-electronic.com>
  9. *
  10. * LED driver for the NXP PCA9685 PWM chip
  11. *
  12. */
  13. #ifndef __LINUX_PCA9685_H
  14. #define __LINUX_PCA9685_H
  15. #include <linux/leds.h>
  16. enum pca9685_outdrv {
  17. PCA9685_OPEN_DRAIN,
  18. PCA9685_TOTEM_POLE,
  19. };
  20. enum pca9685_inverted {
  21. PCA9685_NOT_INVERTED,
  22. PCA9685_INVERTED,
  23. };
  24. struct pca9685_platform_data {
  25. struct led_platform_data leds;
  26. enum pca9685_outdrv outdrv;
  27. enum pca9685_inverted inverted;
  28. };
  29. #endif /* __LINUX_PCA9685_H */