diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-12 02:27:42 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-12 02:27:42 -0500 |
commit | 85b656cf1560e27a89354a23f2c10ba229d2f173 (patch) | |
tree | 53c8b9d30c45dad618a704fd4a5b6aa5b95250cd /arch/arm | |
parent | 2b684c073f32b557661eba191ce0a584020367e2 (diff) | |
parent | 30dae2f98612d7c8cd855861b9de205ebd9ef4fa (diff) |
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds
Pull LED subsystem changes from Bryan Wu:
"LED subsystem updates for 3.13 are basically cleanup and also add a
new driver for PCA9685"
* 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds:
leds: lp55xx: handle enable pin in driver
leds-gpio: of: led should not be created if its status is disabled
of: introduce of_get_available_child_count
leds: Added driver for the NXP PCA9685 I2C chip
leds: pwm: Remove redundant of_match_ptr
leds: Include linux/of.h header
leds: dac124s085: Remove redundant spi_set_drvdata
leds: lp55xx: enable setting default trigger
leds: blinkm: Remove redundant break
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap2/board-rx51-peripherals.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index 5c0d0e120420..f093af17f5e6 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c | |||
@@ -213,29 +213,11 @@ static struct lp55xx_led_config rx51_lp5523_led_config[] = { | |||
213 | } | 213 | } |
214 | }; | 214 | }; |
215 | 215 | ||
216 | static int rx51_lp5523_setup(void) | ||
217 | { | ||
218 | return gpio_request_one(RX51_LP5523_CHIP_EN_GPIO, GPIOF_DIR_OUT, | ||
219 | "lp5523_enable"); | ||
220 | } | ||
221 | |||
222 | static void rx51_lp5523_release(void) | ||
223 | { | ||
224 | gpio_free(RX51_LP5523_CHIP_EN_GPIO); | ||
225 | } | ||
226 | |||
227 | static void rx51_lp5523_enable(bool state) | ||
228 | { | ||
229 | gpio_set_value(RX51_LP5523_CHIP_EN_GPIO, !!state); | ||
230 | } | ||
231 | |||
232 | static struct lp55xx_platform_data rx51_lp5523_platform_data = { | 216 | static struct lp55xx_platform_data rx51_lp5523_platform_data = { |
233 | .led_config = rx51_lp5523_led_config, | 217 | .led_config = rx51_lp5523_led_config, |
234 | .num_channels = ARRAY_SIZE(rx51_lp5523_led_config), | 218 | .num_channels = ARRAY_SIZE(rx51_lp5523_led_config), |
235 | .clock_mode = LP55XX_CLOCK_AUTO, | 219 | .clock_mode = LP55XX_CLOCK_AUTO, |
236 | .setup_resources = rx51_lp5523_setup, | 220 | .enable_gpio = RX51_LP5523_CHIP_EN_GPIO, |
237 | .release_resources = rx51_lp5523_release, | ||
238 | .enable = rx51_lp5523_enable, | ||
239 | }; | 221 | }; |
240 | #endif | 222 | #endif |
241 | 223 | ||