Message ID | 20211007213400.258371-6-marijn.suijten@somainline.org (mailing list archive) |
---|---|
State | Awaiting Upstream |
Headers | show |
Series | backlight: qcom-wled: fix and solidify handling of enabled-strings | expand |
diff --git a/drivers/video/backlight/qcom-wled.c b/drivers/video/backlight/qcom-wled.c index c5232478a343..9bfbf601762a 100644 --- a/drivers/video/backlight/qcom-wled.c +++ b/drivers/video/backlight/qcom-wled.c @@ -1518,6 +1518,8 @@ static int wled_configure(struct wled *wled) return -EINVAL; } } + + cfg->num_strings = string_len; } rc = of_property_read_u32(dev->of_node, "qcom,num-strings", &val);