Skip to content

Commit 141f15c

Browse files
OsterlaDpavelmachek
authored andcommitted
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 <[email protected]> Signed-off-by: Denis Osterland-Heim <[email protected]> Signed-off-by: Pavel Machek <[email protected]>
1 parent dd47a83 commit 141f15c

File tree

2 files changed

+13
-23
lines changed

2 files changed

+13
-23
lines changed

drivers/leds/leds-pwm.c

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,21 @@
1616
#include <linux/leds.h>
1717
#include <linux/err.h>
1818
#include <linux/pwm.h>
19-
#include <linux/leds_pwm.h>
2019
#include <linux/slab.h>
2120

21+
struct led_pwm {
22+
const char *name;
23+
const char *default_trigger;
24+
u8 active_low;
25+
unsigned int max_brightness;
26+
unsigned int pwm_period_ns;
27+
};
28+
29+
struct led_pwm_platform_data {
30+
int num_leds;
31+
struct led_pwm *leds;
32+
};
33+
2234
struct led_pwm_data {
2335
struct led_classdev cdev;
2436
struct pwm_device *pwm;

include/linux/leds_pwm.h

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)