diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-12 14:35:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-12 14:35:33 -0400 |
commit | 5223161dc0f5e44fbf3d5e42d23697b6796cdf4e (patch) | |
tree | 10837ec58d96e751469d78d347f76c0d49238d72 /include/linux/platform_data | |
parent | e5d0c874391a500be7643d3eef9fb07171eee129 (diff) | |
parent | 61abeba5222895d6900b13115f5d8eba7988d7d6 (diff) |
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds
Pull led updates from Bryan Wu:
"Sorry for the late pull request, since I'm just back from vacation.
LED subsystem updates for 3.12:
- pca9633 driver DT supporting and pca9634 chip supporting
- restore legacy device attributes for lp5521
- other fixing and updates"
* 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds: (28 commits)
leds: wm831x-status: Request a REG resource
leds: trigger: ledtrig-backlight: Fix invalid memory access in fb_event notification callback
leds-pca963x: Fix device tree parsing
leds-pca9633: Rename to leds-pca963x
leds-pca9633: Add mutex to the ledout register
leds-pca9633: Unique naming of the LEDs
leds-pca9633: Add support for PCA9634
leds: lp5562: use LP55xx common macros for device attributes
Documentation: leds-lp5521,lp5523: update device attribute information
leds: lp5523: remove unnecessary writing commands
leds: lp5523: restore legacy device attributes
leds: lp5523: LED MUX configuration on initializing
leds: lp5523: make separate API for loading engine
leds: lp5521: remove unnecessary writing commands
leds: lp5521: restore legacy device attributes
leds: lp55xx: add common macros for device attributes
leds: lp55xx: add common data structure for program
Documentation: leds: Fix a typo
leds: ss4200: Fix incorrect placement of __initdata
leds: clevo-mail: Fix incorrect placement of __initdata
...
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r-- | include/linux/platform_data/leds-lp55xx.h | 10 | ||||
-rw-r--r-- | include/linux/platform_data/leds-pca963x.h (renamed from include/linux/platform_data/leds-pca9633.h) | 25 |
2 files changed, 26 insertions, 9 deletions
diff --git a/include/linux/platform_data/leds-lp55xx.h b/include/linux/platform_data/leds-lp55xx.h index 202e290faea8..51a2ff579d60 100644 --- a/include/linux/platform_data/leds-lp55xx.h +++ b/include/linux/platform_data/leds-lp55xx.h | |||
@@ -36,6 +36,13 @@ struct lp55xx_predef_pattern { | |||
36 | u8 size_b; | 36 | u8 size_b; |
37 | }; | 37 | }; |
38 | 38 | ||
39 | enum lp8501_pwr_sel { | ||
40 | LP8501_ALL_VDD, /* D1~9 are connected to VDD */ | ||
41 | LP8501_6VDD_3VOUT, /* D1~6 with VDD, D7~9 with VOUT */ | ||
42 | LP8501_3VDD_6VOUT, /* D1~6 with VOUT, D7~9 with VDD */ | ||
43 | LP8501_ALL_VOUT, /* D1~9 are connected to VOUT */ | ||
44 | }; | ||
45 | |||
39 | /* | 46 | /* |
40 | * struct lp55xx_platform_data | 47 | * struct lp55xx_platform_data |
41 | * @led_config : Configurable led class device | 48 | * @led_config : Configurable led class device |
@@ -67,6 +74,9 @@ struct lp55xx_platform_data { | |||
67 | /* Predefined pattern data */ | 74 | /* Predefined pattern data */ |
68 | struct lp55xx_predef_pattern *patterns; | 75 | struct lp55xx_predef_pattern *patterns; |
69 | unsigned int num_patterns; | 76 | unsigned int num_patterns; |
77 | |||
78 | /* LP8501 specific */ | ||
79 | enum lp8501_pwr_sel pwr_sel; | ||
70 | }; | 80 | }; |
71 | 81 | ||
72 | #endif /* _LEDS_LP55XX_H */ | 82 | #endif /* _LEDS_LP55XX_H */ |
diff --git a/include/linux/platform_data/leds-pca9633.h b/include/linux/platform_data/leds-pca963x.h index c5bf29b6fa7f..e731f0036329 100644 --- a/include/linux/platform_data/leds-pca9633.h +++ b/include/linux/platform_data/leds-pca963x.h | |||
@@ -1,7 +1,8 @@ | |||
1 | /* | 1 | /* |
2 | * PCA9633 LED chip driver. | 2 | * PCA963X LED chip driver. |
3 | * | 3 | * |
4 | * Copyright 2012 bct electronic GmbH | 4 | * Copyright 2012 bct electronic GmbH |
5 | * Copyright 2013 Qtechnology A/S | ||
5 | * | 6 | * |
6 | * This program is free software; you can redistribute it and/or | 7 | * This program is free software; you can redistribute it and/or |
7 | * modify it under the terms of the GNU General Public License | 8 | * modify it under the terms of the GNU General Public License |
@@ -18,18 +19,24 @@ | |||
18 | * 02110-1301 USA | 19 | * 02110-1301 USA |
19 | */ | 20 | */ |
20 | 21 | ||
21 | #ifndef __LINUX_PCA9633_H | 22 | #ifndef __LINUX_PCA963X_H |
22 | #define __LINUX_PCA9633_H | 23 | #define __LINUX_PCA963X_H |
23 | #include <linux/leds.h> | 24 | #include <linux/leds.h> |
24 | 25 | ||
25 | enum pca9633_outdrv { | 26 | enum pca963x_outdrv { |
26 | PCA9633_OPEN_DRAIN, | 27 | PCA963X_OPEN_DRAIN, |
27 | PCA9633_TOTEM_POLE, /* aka push-pull */ | 28 | PCA963X_TOTEM_POLE, /* aka push-pull */ |
28 | }; | 29 | }; |
29 | 30 | ||
30 | struct pca9633_platform_data { | 31 | enum pca963x_blink_type { |
32 | PCA963X_SW_BLINK, | ||
33 | PCA963X_HW_BLINK, | ||
34 | }; | ||
35 | |||
36 | struct pca963x_platform_data { | ||
31 | struct led_platform_data leds; | 37 | struct led_platform_data leds; |
32 | enum pca9633_outdrv outdrv; | 38 | enum pca963x_outdrv outdrv; |
39 | enum pca963x_blink_type blink_type; | ||
33 | }; | 40 | }; |
34 | 41 | ||
35 | #endif /* __LINUX_PCA9633_H*/ | 42 | #endif /* __LINUX_PCA963X_H*/ |