]> git.karo-electronics.de Git - karo-tx-linux.git/blob - include/linux/platform_data/leds-pca9685.h
Merge remote-tracking branch 'leds/for-next'
[karo-tx-linux.git] / include / linux / platform_data / leds-pca9685.h
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
14 #ifndef __LINUX_PCA9685_H
15 #define __LINUX_PCA9685_H
16
17 #include <linux/leds.h>
18
19 enum pca9685_outdrv {
20         PCA9685_OPEN_DRAIN,
21         PCA9685_TOTEM_POLE,
22 };
23
24 enum pca9685_inverted {
25         PCA9685_NOT_INVERTED,
26         PCA9685_INVERTED,
27 };
28
29 struct pca9685_platform_data {
30         struct led_platform_data leds;
31         enum pca9685_outdrv outdrv;
32         enum pca9685_inverted inverted;
33 };
34
35 #endif /* __LINUX_PCA9685_H */