summaryrefslogtreecommitdiff
path: root/drivers/leds
diff options
context:
space:
mode:
authorDenis Osterland-Heim <denis.osterland@diehl.com>2020-03-21 08:15:53 +0000
committerPavel Machek <pavel@ucw.cz>2020-03-21 16:17:53 +0100
commit4227685b4dda61a3c0d2f10d50d364cb9c1a669d (patch)
tree2136d4ac0411806f594562c99d1b41559e352a63 /drivers/leds
parent141f15c66d9472c642f38aae010ed68289036d7c (diff)
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 <Denis.Osterland@diehl.com> Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-pwm.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/leds/leds-pwm.c b/drivers/leds/leds-pwm.c
index e1848e80aeb4..6caf8bea8cd5 100644
--- a/drivers/leds/leds-pwm.c
+++ b/drivers/leds/leds-pwm.c
@@ -23,7 +23,6 @@ struct led_pwm {
const char *default_trigger;
u8 active_low;
unsigned int max_brightness;
- unsigned int pwm_period_ns;
};
struct led_pwm_platform_data {
@@ -91,9 +90,6 @@ static int led_pwm_add(struct device *dev, struct led_pwm_priv *priv,
pwm_init_state(led_data->pwm, &led_data->pwmstate);
- if (!led_data->pwmstate.period)
- led_data->pwmstate.period = led->pwm_period_ns;
-
ret = devm_led_classdev_register(dev, &led_data->cdev);
if (ret == 0) {
priv->num_leds++;