leds-pca963x.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * PCA963X LED chip driver.
  3. *
  4. * Copyright 2012 bct electronic GmbH
  5. * Copyright 2013 Qtechnology A/S
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * version 2 as published by the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope that it will be useful, but
  12. * WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  19. * 02110-1301 USA
  20. */
  21. #ifndef __LINUX_PCA963X_H
  22. #define __LINUX_PCA963X_H
  23. #include <linux/leds.h>
  24. enum pca963x_outdrv {
  25. PCA963X_OPEN_DRAIN,
  26. PCA963X_TOTEM_POLE, /* aka push-pull */
  27. };
  28. enum pca963x_blink_type {
  29. PCA963X_SW_BLINK,
  30. PCA963X_HW_BLINK,
  31. };
  32. struct pca963x_platform_data {
  33. struct led_platform_data leds;
  34. enum pca963x_outdrv outdrv;
  35. enum pca963x_blink_type blink_type;
  36. };
  37. #endif /* __LINUX_PCA963X_H*/