Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Luotao Fu | 41c42ff | 2009-02-11 13:24:40 -0800 | [diff] [blame] | 2 | /* |
| 3 | * PWM LED driver data - see drivers/leds/leds-pwm.c |
| 4 | */ |
| 5 | #ifndef __LINUX_LEDS_PWM_H |
| 6 | #define __LINUX_LEDS_PWM_H |
| 7 | |
| 8 | struct led_pwm { |
| 9 | const char *name; |
| 10 | const char *default_trigger; |
Peter Ujfalusi | 9ea6cda | 2012-12-21 01:43:55 -0800 | [diff] [blame] | 11 | unsigned pwm_id __deprecated; |
Luotao Fu | 41c42ff | 2009-02-11 13:24:40 -0800 | [diff] [blame] | 12 | u8 active_low; |
| 13 | unsigned max_brightness; |
| 14 | unsigned pwm_period_ns; |
| 15 | }; |
| 16 | |
| 17 | struct led_pwm_platform_data { |
| 18 | int num_leds; |
| 19 | struct led_pwm *leds; |
| 20 | }; |
| 21 | |
| 22 | #endif |