Skip to content

Commit 4227685

Browse files
OsterlaDpavelmachek
authored andcommitted
leds: pwm: remove useless pwm_period_ns
This member seems to was a way to pass PWM period to the LED. Since there is no header anymore, this is useless. Signed-off-by: Denis Osterland-Heim <[email protected]> Signed-off-by: Pavel Machek <[email protected]>
1 parent 141f15c commit 4227685

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/leds/leds-pwm.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ struct led_pwm {
2323
const char *default_trigger;
2424
u8 active_low;
2525
unsigned int max_brightness;
26-
unsigned int pwm_period_ns;
2726
};
2827

2928
struct led_pwm_platform_data {
@@ -91,9 +90,6 @@ static int led_pwm_add(struct device *dev, struct led_pwm_priv *priv,
9190

9291
pwm_init_state(led_data->pwm, &led_data->pwmstate);
9392

94-
if (!led_data->pwmstate.period)
95-
led_data->pwmstate.period = led->pwm_period_ns;
96-
9793
ret = devm_led_classdev_register(dev, &led_data->cdev);
9894
if (ret == 0) {
9995
priv->num_leds++;

0 commit comments

Comments
 (0)