diff options
author | Denis Osterland-Heim <denis.osterland@diehl.com> | 2020-03-21 08:15:53 +0000 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2020-03-21 16:17:53 +0100 |
commit | 141f15c66d9472c642f38aae010ed68289036d7c (patch) | |
tree | a083cbcb4baa564484afe288bb3db91a1a59922f /drivers/leds/leds-pwm.c | |
parent | dd47a83453e4a5b0d6a91fe702b7fbc1984fb610 (diff) | |
download | linux-stable-141f15c66d9472c642f38aae010ed68289036d7c.tar.gz linux-stable-141f15c66d9472c642f38aae010ed68289036d7c.tar.bz2 linux-stable-141f15c66d9472c642f38aae010ed68289036d7c.zip |
leds: pwm: remove header
The header is only used by leds_pwm.c, so move contents to leds_pwm.c
and remove it.
Apply minor changes suggested by checkpatch.
Remove deprecated and unused pwm_id member.
Suggested-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Denis Osterland-Heim <Denis.Osterland@diehl.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'drivers/leds/leds-pwm.c')
-rw-r--r-- | drivers/leds/leds-pwm.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/leds/leds-pwm.c b/drivers/leds/leds-pwm.c index 9111cdede0ee..e1848e80aeb4 100644 --- a/drivers/leds/leds-pwm.c +++ b/drivers/leds/leds-pwm.c @@ -16,9 +16,21 @@ #include <linux/leds.h> #include <linux/err.h> #include <linux/pwm.h> -#include <linux/leds_pwm.h> #include <linux/slab.h> +struct led_pwm { + const char *name; + const char *default_trigger; + u8 active_low; + unsigned int max_brightness; + unsigned int pwm_period_ns; +}; + +struct led_pwm_platform_data { + int num_leds; + struct led_pwm *leds; +}; + struct led_pwm_data { struct led_classdev cdev; struct pwm_device *pwm; |