aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data/leds-pca9685.h
blob: 778e9e4249cc9665b09921dd8b88f88938c26d60 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Copyright 2013 Maximilian Güntner <maximilian.guentner@gmail.com>
 *
 * This file is subject to the terms and conditions of version 2 of
 * the GNU General Public License.  See the file COPYING in the main
 * directory of this archive for more details.
 *
 * Based on leds-pca963x.h by Peter Meerwald <p.meerwald@bct-electronic.com>
 *
 * LED driver for the NXP PCA9685 PWM chip
 *
 */

#ifndef __LINUX_PCA9685_H
#define __LINUX_PCA9685_H

#include <linux/leds.h>

enum pca9685_outdrv {
	PCA9685_OPEN_DRAIN,
	PCA9685_TOTEM_POLE,
};

enum pca9685_inverted {
	PCA9685_NOT_INVERTED,
	PCA9685_INVERTED,
};

struct pca9685_platform_data {
	struct led_platform_data leds;
	enum pca9685_outdrv outdrv;
	enum pca9685_inverted inverted;
};

#endif /* __LINUX_PCA9685_H */